问个关于java.sql类小问题
现在知道以下几个方法:
boolean execute()
在此 PreparedStatement 对象中执行 SQL 语句,该语句可以是任何种类的 SQL 语句。
ResultSet executeQuery()
在此 PreparedStatement 对象中执行 SQL 查询,并返回该查询生成的 ResultSet 对象。
int executeUpdate()
在此 PreparedStatement 对象中执行 SQL 语句,该语句必须是一个 SQL INSERT、UPDATE 或 DELETE 语句
===================================================
现在有条SQL是:
INSERT INTO B_TABLE
SELECT * FROM A_TABLE
where a...
为什么我用execute()和executeQuery()
都不行呢?
错误提示如下:
missing value keyword