示例#1
0
func (this *FirebirdSQLTranslator) GetAutoNumberQuery(column *db.Column) string {
	return "select GEN_ID(" + column.GetTable().GetName() + "_GEN, 1) from RDB$DATABASE"
}
示例#2
0
func (this *OracleTranslator) GetAutoNumberQuery(column *db.Column) string {
	return "select " + strings.ToUpper(column.GetTable().GetName()) + "_SEQ.nextval from dual"
}