print("CREATE TABLE "); printlnIdentifier(getTableName(table)); println("(");  writeColumns(table);  if (getPlatformInfo().isPrimaryKeyEmbedded()) { writeEmbeddedPrimaryKeysStmt(table); } if (getPlatformInfo().isForeignKeysEmbedded()) { writeEmbeddedForeignKeysStmt(database, table); } if (getPlatformInfo().isIndicesEmbedded()) { writeEmbeddedIndicesStmt(table); } println(); print(")"); printEndOfStatement();  if (!getPlatformInfo().isPrimaryKeyEmbedded()) { writeExternalPrimaryKeysCreateStmt(table); } if (!getPlatformInfo().isIndicesEmbedded()) { writeExternalIndicesCreateStmt(table); }
createTable(database, table, null);
    public void createTable(Database database, Table table) throws IOException     {        print("CREATE TABLE ");        printlnIdentifier(getTableName(table));        println("(");        writeColumns(table);        if (getPlatformInfo().isPrimaryKeyEmbedded())        {            writeEmbeddedPrimaryKeysStmt(table);        }        if (getPlatformInfo().isForeignKeysEmbedded())        {            writeEmbeddedForeignKeysStmt(database, table);        }        if (getPlatformInfo().isIndicesEmbedded())        {            writeEmbeddedIndicesStmt(table);        }        println();        print(")");        printEndOfStatement();        if (!getPlatformInfo().isPrimaryKeyEmbedded())        {            writeExternalPrimaryKeysCreateStmt(table);        }        if (!getPlatformInfo().isIndicesEmbedded())        {            writeExternalIndicesCreateStmt(table);        }    }