Add DISTINCT operator support
This commit is contained in:
parent
6fe9c26d30
commit
a506a96d6a
7 changed files with 197 additions and 0 deletions
|
|
@ -173,3 +173,8 @@ func (c *caseOperatorImpl) serialize(statement StatementType, out *SQLBuilder, o
|
|||
|
||||
out.WriteString("END)")
|
||||
}
|
||||
|
||||
// DISTINCT operator can be used to return distinct values of expr
|
||||
func DISTINCT(expr Expression) Expression {
|
||||
return newPrefixOperatorExpression(expr, "DISTINCT")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue