diff -r f270d4f63583 docs/db-api.txt
a
|
b
|
SQL equivalents::
|
1189 | 1189 | |
1190 | 1190 | SELECT ... WHERE title REGEXP BINARY '^(An?|The) +'; -- MySQL |
1191 | 1191 | |
| 1192 | SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'c'); -- Oracle |
| 1193 | |
1192 | 1194 | SELECT ... WHERE title ~ '^(An?|The) +'; -- PostgreSQL |
1193 | 1195 | |
1194 | 1196 | SELECT ... WHERE title REGEXP '^(An?|The) +'; -- sqlite |
1195 | 1197 | |
1196 | 1198 | Using raw strings for passing in the regular expression syntax is recommended. |
1197 | 1199 | |
1198 | | Regular expression matching is not supported on the ``ado_mssql`` and |
1199 | | ``oracle`` backends; these will raise a ``NotImplementedError``. |
| 1200 | Regular expression matching is not supported on the ``ado_mssql`` backend; it |
| 1201 | will raise a ``NotImplementedError``. |
1200 | 1202 | |
1201 | 1203 | iregex |
1202 | 1204 | ~~~~~~ |
… |
… |
SQL equivalents::
|
1210 | 1212 | SQL equivalents:: |
1211 | 1213 | |
1212 | 1214 | SELECT ... WHERE title REGEXP '^(an?|the) +'; -- MySQL |
| 1215 | |
| 1216 | SELECT ... WHERE REGEXP_LIKE(title, '^(an?|the) +', 'i'); -- Oracle |
1213 | 1217 | |
1214 | 1218 | SELECT ... WHERE title ~* '^(an?|the) +'; -- PostgreSQL |
1215 | 1219 | |