Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从原数据库迁移到目标库,可能涉及到数据转换的问题 #30

Open
quliting opened this issue Aug 29, 2024 · 1 comment

Comments

@quliting
Copy link

由于历史原因:原数据库 的字段存放的是字节(实质是 文本内容),
迁移到新数据库由于业务需要,需要转化成具体的内容(文本内容)
这样的场景,应该怎么做?

@nnhy
Copy link
Member

nnhy commented Aug 29, 2024

在xml数据模型里面,把字段类型设置为Byte[],应该能够自动转换。
获取取出来以后,发现是0x开头,就去掉头部,然后用ToHex转换

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants