2008-05-16
prepareStatement
truncate table table_xx;
PreparedStatement 不支持 truncate 语句
要使用Statement
Statement pset = null;//清除
if(conn!=null)
{
pset = conn.createStatement();
int dn = pset.executeUpdate("TRUNCATE TABLE t_datatableTemp");
System.out.println("清空临时表的返回值:"+dn);
pset.close();
...
}
PreparedStatement 不支持 truncate 语句
要使用Statement
Statement pset = null;//清除
if(conn!=null)
{
pset = conn.createStatement();
int dn = pset.executeUpdate("TRUNCATE TABLE t_datatableTemp");
System.out.println("清空临时表的返回值:"+dn);
pset.close();
...
}
- 15:00
- 浏览 (58)
- 评论 (0)
- 分类: Oracle SQL
- 相关推荐
发表评论
- 浏览: 10723 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
我的相册
自行车
共 1 张
共 1 张
最近加入圈子
最新评论
-
HashMap使用
你就是在thinking in java 上下载的吧,不过总结的不错
-- by lysmart_8 -
过去有一位年轻和尚,一心 ...
哈哈哈,这个老和尚估计是个高级“和尚”
-- by hydex -
不规范的树结构表查询
一个值得读一下的文章:http://www.itpub.net/redirect ...
-- by hydex






评论排行榜