R
R9
Unregistered / Unconfirmed
GUEST, unregistred user!
CREATE PROCEDURE biao_gl @name char(10), @sex char(10), @age char(10), @addr char(10), @number char(10), @room char(10), @money char(10),@op char(1),@id char (10)
AS
begin
if @op='a'
begin
insert into biao (name,sex,age,addr,number,room,money)values(@name,@sex,@age,@addr,@number,@room,@money)
end
else if @op='d'
begin
delete from biao where id=@id
end
else if @op='u'
begin
update biao set name=@name,sex=@sex,age=@age,addr=@addr,number=@number,room=@room,money=@money where id=@id
end
end
GO
这是我在sql里写的存储过程,请问,我在delphi里怎么调用它?
比如我要调用 ADD DELERT 等语句怎么用?
谢谢~
AS
begin
if @op='a'
begin
insert into biao (name,sex,age,addr,number,room,money)values(@name,@sex,@age,@addr,@number,@room,@money)
end
else if @op='d'
begin
delete from biao where id=@id
end
else if @op='u'
begin
update biao set name=@name,sex=@sex,age=@age,addr=@addr,number=@number,room=@room,money=@money where id=@id
end
end
GO
这是我在sql里写的存储过程,请问,我在delphi里怎么调用它?
比如我要调用 ADD DELERT 等语句怎么用?
谢谢~