[存储过程]
‘////////////////////////////////////////////////////////////////////////////////////
CREATE PROCEDURE Test_procedure @cid int ,@y int, @n varchar(10) output
AS
select * from city where cid=@cid
if @y=1
begin
set @n = 成功!
return 0
end
else
set @n = 失败!
return -1
GO
[程序中调用存储过程]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conn As OleDbConnection
Try
上一个:ASP.NET 打造互联网未来空间站(1)下一个:类似BOOLEAN列的DATAGRIDTEXTBOX的改进