Public Vars

Back

having (clj)

(source)

function

(having & exprs)
Like `where`, accepts one or more SQL expressions (conditions) and combines them with AND (by default): (having [:> :count 0] [:<> :name nil]) or: (having :and [:> :count 0] [:<> :name nil]) Produces: HAVING (count > ?) AND (name IS NOT NULL) Parameters: 0 (having :> :count 0) Produces: HAVING count > ? Parameters: 0 (having :or [:> :count 0] [:= :name ""]) Produces: HAVING (count > ?) OR (name = ?) Parameters: 0 ""

Examples