How to use Mysql's "regexp" or postgresql's "~*" ? #47

Closed
opened 2019-02-19 02:03:10 +00:00 by lunny · 1 comment
Owner

Author: @walnut-tom

mysql:
select * from user where name regexp '^tom';
postgresql:
select * from user where name ~* '^[a-h]'

Author: @walnut-tom mysql: select * from user where name regexp '^tom'; postgresql: select * from user where name ~* '^[a-h]'
Author
Owner

Author: @lunny

You can use Expr() or you can implement yours Cond.

Author: @lunny You can use `Expr()` or you can implement yours `Cond`.
lunny closed this issue 2019-07-11 02:51:40 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/builder#47
No description provided.