日期:2014-05-18 浏览次数:20620 次
'select * from ywmx_b where ' + ' bm = ''' + '0001' + ''''
------解决方案--------------------
实在不明白,你就PRINT出来看下:
declare @sql varchar(8000)
set @sql='select * from ywmx_b where ' + 'bm = ' + '0001'
print @sql
---------------------------------
select * from ywmx_b where bm = 0001
0001是字符串