34,594
社区成员
发帖
与我相关
我的任务
分享
select len(fmark),fmark from productholeboxdt
where prodno = 'S110800508' and boxno = '02'
查詢結果為:select len(fmark),* from productholeboxdt
where prodno = 'S110800508' and boxno = '02' ltrim(rtrim(fmark)) = N'貼貼紙'
select len(fmark),* from productholeboxdt
where prodno = 'S110800508' and boxno = '02'
and ltrim(rtrim(fmark)) like '貼貼紙 %' --这地方有个空格,空格也是要占位的。 数据里面没有带 貼貼紙
的数据
select len(fmark),* from productholeboxdt
where prodno = 'S110800508' and boxno = '02'
and ltrim(rtrim(fmark)) like '貼貼紙%'
查询有结果select len(fmark),* from productholeboxdt
where prodno = 'S110800508' and boxno = '02'
and ltrim(rtrim(fmark)) like '貼貼紙 %'
查询没有结果