关于用jdbc-odbc操纵access2000数据库,String sql="create table btm(xwbt char(50),xwcn text)";这样操纵可以吗?
操纵的代码如下:
public void ct(Connection con){
String btm="news"+id;
String sql="create table btm(xwbt char(50),xwcn text)";
try{
this.con=con;
Statement stmt2=this.con.createStatement(
ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
ResultSet rs2=stmt2.executeQuery(sql);
rs2.close();
stmt2.close();
}
catch(SQLException sex2){
System.out.print(sex2.toString());
}
}
关键是这一句可以这样写吗?:String sql="create table btm(xwbt char(50),xwcn text)";