我刚刚看了API好象不行,
executeUpdate
public int executeUpdate(String sql)
throws SQLExceptionExecutes an SQL INSERT, UPDATE or DELETE statement. In addition, SQL statements that return nothing, such as SQL DDL statements, can be executed.
Parameters:
sql - an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing
Returns:
either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing
Throws:
SQLException - if a database access error occurs用JDBC里的哪个函数来创建表啊
executeUpdate
public int executeUpdate(String sql)
throws SQLExceptionExecutes an SQL INSERT, UPDATE or DELETE statement. In addition, SQL statements that return nothing, such as SQL DDL statements, can be executed.
Parameters:
sql - an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing
Returns:
either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing
Throws:
SQLException - if a database access error occurs用JDBC里的哪个函数来创建表啊
解决方案 »
- 这是上述问题的源码,请各位帮忙
- 问下大家对Action的习惯命名
- MyEclipse怎么不能自动配置我的文件了?
- hibernate的写法?
- 高分求救:关于xml移植到jsp问题!!解答后立即给分!
- spring 怎么回滚
- hibernate 菜鸟问题
- [大家讨论,来者有分200分]在Ejb中总是提到“分布式”,那到底什么才是分布式呢?这里的分布式和数据库oracle等中分布式又有什么的区
- Struts2和Jasperreport5.6.0整合的过程中报错了
- quartz 2.2 当job出错时,居然自动重新调用了3次,求大神解答
- 关于实体BEAN的应用问题
- 请教大虾们关于ValidatorActionForm的验证问题
你安装别人的论坛的时候,就需要创建表。就是直接用executeUpdate建的
an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing
关键是SQL statement that returns nothing。
create table也是不返回结果的sql语句啊
public int executeUpdate(String sql)
throws SQLExceptionExecutes an SQL INSERT, UPDATE or DELETE statement. In addition, SQL statements that return nothing, such as SQL DDL statements, can be executed.
Parameters:
sql - an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing
Returns:
either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing
Throws:
SQLException - if a database access error occurs
execute()
都可以