update tableName set theMemo.............. where id in (某ID 范围)
我想把某个表的备注字段都在 已有内容的基础上统一加上指定内容,例如符合条件的记录都在自己已有备注的内容基础上统一加上“这是一个测试”,请问这样的更新语句,SQL 应该怎么写?
我想把某个表的备注字段都在 已有内容的基础上统一加上指定内容,例如符合条件的记录都在自己已有备注的内容基础上统一加上“这是一个测试”,请问这样的更新语句,SQL 应该怎么写?
update tableName set 备注字段=备注字段+‘这是一个测试’ where id in (某ID 范围)
update tableName set theMemo=theMemo+'这是一个测试' where id in (某ID 范围)
该怎么处理?
update tableName set theMemo=isnull(theMemo,'')+'这是一个测试' where id in (某ID 范围)