CREATE TRIGGER TR_SAMPLE INSTEAD OF
DECLARE @ptrval varbinary(16)
DECLARE @value1 varchar(8000)
DECLARE @value2 varchar(8000)
DECLARE @id int
SELECT @id = id from inserted
Select @ptrval = TEXTPTR(columnname) from tablename where id=@id
WRITETEXT table.columnname @ptrval @value1+@value2
给出错误:
'+'附近的语法不正确
答案 0 :(得分:2)
尝试将其作为两个步骤进行。
WRITETEXT table.columnname @ptrval @value1
UPDATETEXT table.columnname @ptrval NULL 0 @value2