sql 数据库 二进制数据修改 求帮助!
declare@abinary(50)set@a=(selectpasswordfromoperatorswherename='manager')print@a0xCFC...
declare @a binary(50)
set @a = (select password from operators where name='manager')
print @a
0xCFCD208495D565EF66E7DFF9F98764DA00000000000000000000000000000000000000000000000000000000000000000000
把要找的数据打印出来后,复制下,去另一个数据库update
update operators set password = cast('0xCFCD208495D565EF66E7DFF9F98764DA00000000000000000000000000000000000000000000000000000000000000000000'as binary(50)) where name ='manager'
但修改进去后值就不变了,是不是不能这样写? 展开
set @a = (select password from operators where name='manager')
print @a
0xCFCD208495D565EF66E7DFF9F98764DA00000000000000000000000000000000000000000000000000000000000000000000
把要找的数据打印出来后,复制下,去另一个数据库update
update operators set password = cast('0xCFCD208495D565EF66E7DFF9F98764DA00000000000000000000000000000000000000000000000000000000000000000000'as binary(50)) where name ='manager'
但修改进去后值就不变了,是不是不能这样写? 展开
若以下回答无法解决问题,邀请你更新回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |