sybase jdbc 创建临时表
来源:互联网 发布:m1005找不到扫描软件 编辑:程序博客网 时间:2024/06/06 11:41
//判断临时表是否存在
String pd_l_sql = "select name from tempdb.dbo.sysobjects where name like '#table_name%' and type='U'";
rs = conn.executeQuery(pd_l_sql);
if(rs.next()){
conn.executeUpdate("drop table #table_name");
String c_l_sql = " create table #table_name( id int , name varchar(10))";
String intoSql = "insert into #table_name (select * from ......)
conn.executeUpdate(intoSql);
String pd_l_sql = "select name from tempdb.dbo.sysobjects where name like '#table_name%' and type='U'";
rs = conn.executeQuery(pd_l_sql);
if(rs.next()){
conn.executeUpdate("drop table #table_name");
}
String c_l_sql = " create table #table_name( id int , name varchar(10))";
conn.executeUpdate(c_l_sql);
String intoSql = "insert into #table_name (select * from ......)
conn.executeUpdate(intoSql);
0 0
- sybase jdbc 创建临时表
- sybase sql 创建临时表
- Sybase ASE 临时表
- sybase创建代理表
- 创建、删除临时表
- 创建交叉临时表
- Oracle 创建临时表
- 动态创建临时表
- 创建临时表
- 创建临时表空间
- C#创建临时表
- 创建全局临时表
- Oracle 创建临时表
- 数据库创建临时表
- sqlserver创建临时表
- sqlserver 创建临时表
- Oracle创建临时表
- JAVA 创建临时表
- Sempahore
- 杂谈
- iOS app 性能优化
- Spring自动装配
- 通信原理中的几个重要概念
- sybase jdbc 创建临时表
- Layer2-多层交换原理
- 解决Node.js 不识别express等模块
- ProtocolBuffer for Objective-C 运行环境配置及使用
- 用char数组模拟STL之string
- Intellij IDEA 提交代码到远程GitHub仓库
- enter键触发查询 通用代码
- echo
- 获取设备id