您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

搜索sql语句

2024/5/15 6:30:39发布33次查看
搜索sql语句
create procedure dbo.select_a
@b varchar(50),
@c varchar(50),
@d varchar(50),
@e varchar(50)
as
declare @strsql varchar(5000) ;
set @strsql='select * from a where 1=1 ';
if @b ''
set @strsql= @strsql+' and b='+@b +'';
if @c ''
set @strsql= @strsql+' and c='+@c +'';
if @d ''
set @strsql= @strsql+' and d='+@d +'';
if @e ''
set @strsql= @strsql+' and e='+@e +'';
exec (@strsql)
go
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product