以无形胜有形,以无限胜有限

导航

2006年3月29日 #

调用存储过程并且使用返回值的基本方法

摘要: 一直没有找到一种好的方法来引用有返回值的存储过程的方法,使我在添加数据中走了不少的弯路,最近,在查阅了大量的资料之后,终于在微软的一个实例中找到了一种良好的方法。 首先编写好一有返回值的存储过程 create procedure proc_name @para1 nchar(20), --输入参数 @para2 int = null out --输出参数,供程序使用 as set nocount on if ( not exists (select * from employee where em_name=@para1)) begin 阅读全文

posted @ 2006-03-29 15:28 David Lee 阅读(733) 评论(0) 推荐(0) 编辑