问:如何在SBO报表设计器中对LastName+FirstName进行条件查询

问:如何在SBO报表设计器中对LastName+FirstName进行条件查询?
答:
declare @strUsr varchar(100)
select @strUsr=a.FirstName FROM OHEM a WHERE a.LastName like '%[%0]%' or IsNull('[%0]','')=''
select @strUsr='[%0]'
select_ * FROM OHEM T0 WHERE LastName+FirstName like '%' + @strUsr + '%'

你可能感兴趣的:(职场,休闲)