标签:create end into val varchar delete nbsp from rom
create proc Get_Data
(
@Del_ID varchar(36)
)
as
select * from Depts where DeptId=@Del_ID
select * from Depts
create procedure proc_Insert_Data
@DealerID varchar(36)
as
begin
declare @count int
select @count=(select COUNT(*) from Depts where DeptName=@DealerID)
if(@count>0)
begin
delete from Depts where DeptId=@DealerID
insert into Depts(DeptName) values(@DealerID)
end
else
begin
insert into Depts(DeptName) values(@DealerID)
end
end
标签:create end into val varchar delete nbsp from rom
原文地址:http://www.cnblogs.com/yangpeng-jingjing/p/6231896.html