少单引号
试试:declare @RC nvarchar(20)
declare @PC nvarchar(20)
exec GetCustomersDataPage 5,10,@RC output,@PC output,'Title,AddTime,Area','News',id,'Area=''广东深圳'' ', ' desc ' , id
go
试试:declare @RC nvarchar(20)
declare @PC nvarchar(20)
exec GetCustomersDataPage 5,10,@RC output,@PC output,'Title,AddTime,Area','News',id,'Area=''广东深圳'' ', ' desc ' , id
go
select xxxxx from xxx where Area=广东深圳,显然是不对的,因为字符字段必须是
where area = '广东深圳' 才通过语法,那么我们就必须构造这两个单引号进去,而在SQL字符处理里
两个单引号表示一个单引号,所以......