数据库创建临时表
来源:互联网 发布:菜鸟网络上市 编辑:程序博客网 时间:2024/06/06 03:01
数据库创建临时表:
IF not exists (select * from sysobjects where id = object_id(N'temp_inventory') and type='U')
select * into temp_inventoryfrom inventory
语句解释:
1、IF not exists (select * from sysobjects where id = object_id(N'temp_inventory') and type='U'):
判断将要创建的表名(temp_inventory)是否存在
temp_inventory:将要创建的临时表
sysobjects:系统对象表
2、select * into temp_inventory from inventory :创建临时表
阅读全文
0 0
- 数据库创建临时表
- 数据库创建临时表
- 数据库中创建临时表
- 数据库中创建临时表
- 【数据库】临时表——select * into创建临时表
- 创建数据库默认语序的临时表
- [数据库]数据库临时表
- 数据库创建表空间、临时表空、用户、授权
- SQLite数据库创建临时表、增加列的方法
- SQLite数据库创建临时表、增加列的方法
- SQLite数据库创建临时表、增加列的方法
- SQLite数据库创建临时表、增加列的方法
- 创建、删除临时表
- 创建交叉临时表
- Oracle 创建临时表
- 动态创建临时表
- 创建临时表
- 创建临时表空间
- Codeforces 700D Huffman Coding on Segment 莫队算法
- WinInet 和 WinHttp 有何区别?
- 线程(二)——线程的状态及常用方法
- 分析并写出下列程序的运行结果
- AndroidStudio导入项目一直卡在Building gradle project info最快速解决方案
- 数据库创建临时表
- C和指针之实现strlen函数
- UGUI检测射线穿透的方法
- android 读取res/values/arrays中的数据
- LeetCode 62. Unique Paths (Medium)
- leetcode20. Valid Parentheses
- Spring学习笔记
- LeetCode--LRU Cache
- HYSBZ