在存储过程中创建一临时表
来源:互联网 发布:编码器ssi数据位定义 编辑:程序博客网 时间:2024/06/02 18:03
create proc Aa
@age int
as
if object_id('tempdb.dbo.##test')isnull ////////////**** 判断临时表是否存在,存在就跳过,不存在就执行下面代码 ****/////////////
begin
create table tempdb.dbo.##test
@age int
as
if object_id('tempdb.dbo.##test')isnull ////////////**** 判断临时表是否存在,存在就跳过,不存在就执行下面代码 ****/////////////
begin
create table tempdb.dbo.##test
(
age int not null,
num int not null
)
insert into ##test values(1,1)
end
else
begin
update ##testset age=@age
end
go
----------------------------------------
age int not null,
num int not null
)
insert into ##test values(1,1)
end
else
begin
update ##testset age=@age
end
go
----------------------------------------
create proc getTest
as
select * from ##test
----------------------------------------
as
select * from ##test
----------------------------------------
- 在存储过程中创建一临时表
- 在存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- 在oracle存储过程中创建临时表
- 在ORACLE存储过程中创建临时表
- 在存储过程中使用临时表
- 在存储过程中创建临时表来重构数据
- 存储过程示例:在存储过程中使用临时表
- 在存储过程中利用游标创建临时表的方法
- 存储过程中创建临时表,为何没有权限?
- ORACLE 在存储过程中使用临时表
- 摘录:sql,临时表,创建,存储过程
- 存储过程 创建全局临时表
- 关于sql server 在存储过程中创建临时表,并往临时表中插入数据时出现乱码的问题
- 存储过程创建临时表和返回临时表
- android国际化
- Delphi 提示“Registry”注册
- 设计模式--工厂模式
- uploadify 3.2 后台动态传参数
- vs2010 cocos2d-x 游戏开发之旅 一
- 在存储过程中创建一临时表
- 利用ssh传输文件
- 数字键盘添加自定义按钮
- dialog弹出时,点击dialog之外的地方时,dialog不消失。
- Java中Runnable和Thread的区别
- 如何用c#实现仿QQ会员右下角提示框
- MyEclipse反编译Class文件的实现
- J2EE的13个标准规范
- 远程桌面连接Windows Azure中的Ubuntu虚拟机