我有一个文章表,它有一个ntext
名为的列SearchText
,其中包含为 html 剥离的整篇文章。
在遍历我们的 +60000 篇文章时,我忘记在 SearchText 内容中添加一列。我现在正在尝试使用更新表
update Table
set SearchText = cast(ForgottenField as ntext) + cast(CHAR(13) as ntext) + SearchText as ntext)
where ForgottenField <> ''
但我收到以下错误:
操作数数据类型 ntext 对 add 运算符无效。
我已阅读有关 UpdateText 的信息,但我不知道如何编写一些简单的 SQL 来更新列