result.append(" FROM RDB$DATABASE");
    public String getSelectLastInsertId(Table table)    {        Column[] columns = table.getAutoIncrementColumns();        if (columns.length == 0)        {            return null;        }        else        {            StringBuffer result = new StringBuffer();                for (int idx = 0; idx < columns.length; idx++)            {                result.append("SELECT GEN_ID (");                result.append(getConstraintName("gen", table, columns[idx].getName(), null));                result.append(",0 ) FROM RDB$DATABASE");                result.append(table.getName());                result.append(getDelimitedIdentifier(columns[idx].getName()));            }            return result.toString();        }    }