【SQL Sever】 存储过程的创建和执行
来源:互联网 发布:linux登录oracle数据库 编辑:程序博客网 时间:2024/03/29 01:05
--无参的存储过程创建create procedure pro_test1asbeginselect * from student where stuid=1end--查询存储过程exec pro_test1DECLARE @return_value intEXEC @return_value = [dbo].[pro_test1]SELECT 'Return Value' = @return_valueGO--创建带默认参数存储过程create procedure pro_test2@stuid int =2asbeginselect * from student where stuid=@stuidend--删除存储过程drop procedure pro_test3--查询带默认参数存储过程exec pro_test2 3declare @stuid int=3exec pro_test2 @stuid--创建带输出参数的存储过程create procedure pro_test3@stuid int=4,@stuname varchar(20) output,@stubirthday varchar(20) outputasbeginselect @stuname=stuname,@stubirthday=stubirthday from student where stuid=@stuidend--调用带输出参数的存储过程declare @stuid int,@stu_name varchar(20) ,@stu_birthday datetime exec pro_test3 @stuid=6,@stuname=@stu_name output,@stubirthday=@stu_birthday outputselect @stu_name,@stu_birthday
1 0
- 【SQL Sever】 存储过程的创建和执行
- SQL Sever 2005创建 CLR 存储过程
- 【SQL Sever】存储过程
- 分页存储过程 SQL Sever
- sql sever和mysql数据库的存储过程转换过程 scope_identity() last_insert_id();
- sql sever 和mysql的存储过程的日期时间转换DATEDIFF
- 创建和执行存储过程
- 创建和执行存储过程
- sql Sever的存储过程转换为mysql的
- 使用存储过程演练SQL SEVER的三层安全模型
- sql Sever的存储过程如何转换为mysql
- 查询SQL SEVER最近修改的存储过程及表
- 为SQL创建只能执行存储过程的用户
- SQL Sever 存储过程简要教程
- sql sever 2005 系统存储过程
- 存储过程 sql sever
- VB.NET调用SQL Sever存储过程
- 编写sql sever存储过程随笔
- ZOJ3870(位运算与思维)
- android 断点下载
- CouchDB未授权访问导致执行任意系统命令漏洞
- ABAP FUNCTION--初始化LISTBOX
- 贝塞尔曲线画的WaveView,波浪头的效果
- 【SQL Sever】 存储过程的创建和执行
- AJAX DOM添加删除元素
- NSProxy 详解
- Windows7安装JDK的环境变量设置javac不是内部命令或外部命令
- java中的工厂模式
- makefile之嵌套shell命令
- C语言基本数据类型简介
- 知名黑客论坛Nulled.io被黑 9.45GB数据遭泄露
- C#使用SevenZipSharp库时如何去掉压缩文件中的目录文件夹