How to ALTER TABLE using UCanAccess

后端 未结 3 1923
长发绾君心
长发绾君心 2020-12-22 04:23

I am using UCanAccess JDBC-driver (version 3.0.3.1) to connect to the mdb-file. And I need to add the column to existing table. The problem is that the statement

         


        
3条回答
  •  感动是毒
    2020-12-22 05:07

    UCanAccess versions 4.0.0 and above now support ALTER TABLE, e.g.,

    Statement stmt = conn.createStatement();
    stmt.execute("ALTER TABLE TableName ADD COLUMN newCol LONG");
    

提交回复
热议问题