Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

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

Open
walnut-tom opened this issue Feb 19, 2019 · 1 comment
Open

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

walnut-tom opened this issue Feb 19, 2019 · 1 comment
Labels

Comments

@walnut-tom
Copy link

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

@lunny
Copy link
Member

lunny commented Feb 19, 2019

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

@lunny lunny added the question label Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants