作者ogamenewbie (荷兰烂银行)
看板java
标题Re: [问题] 有关 java 程式内的 sql 语法
时间Sat Apr 8 02:27:58 2006
我一定是瞎了...
竟然把原 po 的 executeQuery 看成 execute... orz
看到这篇才发现 orz... (撞豆腐)
另外.
经骨头大提醒, DELETE 是可以没有 WHERE 的...
各位抱歉...
※ 引述《TonyQ (骨头)》之铭言:
: http://0rz.net/a81eQ
: The method executeQuery is designed for statements that
: produce a single result set, such as SELECT statements.
: The method executeUpdate is used to execute INSERT, UPDATE,
: or DELETE statements and also SQL DDL (Data Definition Language)
: statements like CREATE TABLE, DROP TABLE, and ALTER TABLE....
: GL & HF
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 163.25.148.49
1F:推 PsMonkey:撞吧撞吧不是罪.... [茶] 04/08 03:05
2F:推 ogamenewbie:一定是被你们传染的 <(>_<)@m 04/08 03:14