Last active
August 29, 2015 14:01
-
-
Save Ronmi/db71bb3ba8c0265017fa to your computer and use it in GitHub Desktop.
某 SQL Builder 將使用的 WHERE 建立語法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $where = $b->o( // OR | |
| $b->o( | |
| $b->eq($m2->col2, 1), | |
| $b->a( //AND | |
| $b->ne($m1->id, 2), | |
| $b->lt($m1->id, $b->raw('3*', $m2->id, '-10')) | |
| ) | |
| ), | |
| $b->not($b->like($m2->col1, 'abc')), | |
| $b->in($m1->col1, $b->lists(1, 2, 3, 4, 5)) | |
| ); |
Ronmi
commented
May 22, 2014
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment