作者killer0720 (好冷)
看板Database
标题[SQL ] 取出的资料存到暂存table
时间Tue Dec 11 00:19:58 2007
请问一下
我现在想要从A栏位中
选出哪个资料的值是大於三十
并且
暂存到暂存TABLE T1
要怎麽写
我是写在JAVA 中
ResultSet result = stmt.executeQuery( "CREATE T1 AS SELECT A FROM TABLE1
WHERE (a>30) " );
他的ERROR 是
java.sql.SQLException: Can not issue data manipulation statements with
executeQuery().
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.130.60.223
※ 编辑: killer0720 来自: 220.130.60.223 (12/11 01:00)