Update expression_ext.go
This commit is contained in:
parent
c9e5b3665c
commit
1acc3bb3ae
@ -277,6 +277,11 @@ func (e *expr) SumExpr() *expr {
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (e *expr) ReplaceExpr(search string,replace string) *expr {
|
||||||
|
e.expr = fmt.Sprintf("REPLACE(%s,'%s','%s')",e.expr,search,replace);
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
func (db *DB) GroupConcatExpr(e *expr, separator string, orderExpr *expr) *expr {
|
func (db *DB) GroupConcatExpr(e *expr, separator string, orderExpr *expr) *expr {
|
||||||
e.args = append(e.args, orderExpr.args...)
|
e.args = append(e.args, orderExpr.args...)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user