存储过程: BEGIN select * from teacher; SELECT * FROM student; END public Object GetMyBOProjectProductList(@PathVariable(value = "userid") int userid) { String driver = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; String url = "jdbc…
SqlServer存储过程详解 1.创建存储过程的基本语法模板: if (exists (select * from sys.objects where name = 'pro_name')) drop proc pro_name go create proc pro_name @param_name param_type [=default_value] as begin sql语句 end ps:[]表示非必写内容.sys.objects存储的是本数据库中的信息,不仅仅存储表名,还有存储过程…