效率高低先不管,这句select @sql=@sql+' and subject like ''%'+keyword+'%'''
说:服务器: 消息 207,级别 16,状态 3,行 20
列名 'keyword' 无效。