触发器问题
CREATE trigger Modi_Date_tbAffiches on tbAffiches
for update
as
declare @id varchar(50) ,@title varchar(300),@content varchar(8000),@FdDept varchar(300)
select @id =FdAfficheID,@title=FdTitle,@content=FdContent,@FdDept=FdDept from tbAffiches
update all_content set need_title=@title , need_content=cast(@title as varchar(300))+cast(@FdDept as varchar(300))+cast(@content as varchar(8000)) where need_tbl='tbAffiches' and need_msg=@id
但是由于我的 表中 content 字段 是 text 类型的。 提示将截断字符串 ,但是),@content varchar(8000) 已经是最大了阿。怎么办啊。。。