27,579
社区成员
发帖
与我相关
我的任务
分享
Create Proc Proc_DeleteBaseData1(
@txtone varchar(50),
@txttwo varchar(50),
@txtcontion varchar(50),
@outprint varchar(50) output)
as
begin
if @txtcontion='全部'
delete from 基础数据 where 日期 between @txtone and @txttwo
else
delete from 基础数据 where charindex(','+ltrim(rtrim(车队))+',',','+@txtcontion+',')>0 and 日期 between @txtone and @txttwo
END
SET @outprint='删除成功'
Create Proc Proc_DeleteBaseData1(
@txtone varchar(50),
@txttwo varchar(50),
@txtcontion varchar(50),
@outprint varchar(50) output)
as
begin
if @txtcontion='全部'
delete from 基础数据 where 日期 between @txtone and @txttwo
else
delete from 基础数据 where charindex(','+车队+',',','+@txtcontion+',')>0 and 日期 between @txtone and @txttwo
END
SET @outprint='删除成功'
Create Proc Proc_DeleteBaseData1(
@txtone varchar(50),
@txttwo varchar(50),
@txtcontion varchar(50),
@outprint varchar(50) output)
as
begin
if @txtcontion='全部'
delete from 基础数据 where 日期 between @txtone and @txttwo
else
delete from 基础数据 where charindex(','+车队+',',','+@txtcontion+',')>0 and 日期 between @txtone and @txttwo
END
SET @outprint='删除成功'