TBL1
ID Value
1 A
2 B
3 C
TBL2
ID Value
1
2
3
UPDATE TBL1
SET TBL1.ID= TBL2.ID
FROM
TBL1 t1
INNER JOIN TBL2 t2
ON t1.Value= t2.Value
WHERE t2.ID like '1'
ID - nvarchar(200)
Value - ntext
我的目的是更新与另一列NTEXT的DataColumn是填补TBL2
从TBL1
如何与NTEXT值
我不能改变的数据类型为数据库是不是我的数据库。
当我写上述内容时,一切都应该没有问题。
但我有这个错误信息。
Msg 402, Level 16, State 1, Line 16
The data types ntext and ntext are incompatible in the equal to operator.
任何想法如何克服这一点?