H2数据库创建表源码分析
H2数据库表创建粗滤分析01 创建入口 @Test public void test_h2_mem ( ) throws SQLException { JdbcConnectionPool ds = JdbcConnectionPool . create ( "jdbc:h2:mem:test3" , "sa" , "1" ) ; // JdbcConnectionPool ds = JdbcConnectionPool.create("jdbc:h2:E:/test2", "sa", ""); ds . setMaxConnections ( 1000 ) ; Connection conn = ds . getConnection ( ) ; Statement stat = conn . createStatement ( ) ; // insert data (ddl) String createTableSql = "" ; createTableSql += "create table userInfo( " ; createTableSql += " id int(4) not null primary key auto_increment, " ; createTableSql += " name char(20) not null, " ;