Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 87aad7d

Browse filesBrowse files
authored
Update README.md
1 parent f523bd4 commit 87aad7d
Copy full SHA for 87aad7d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ Here is list of all SuperSQL flags:
154154
$ssql->read("users", $ssql->cond()->eq("username", "nickname")->gte("sign_up_time", time() - 3600));
155155

156156
//Use arrays to differentiate string values from column names and to specify more alternatives, the COND_OR flag is also supported
157-
//This will select users that have username either "ratajs" or "admin" or that have username "RatajS"
157+
//This will select users that have username either "ratajs" or "admin" or that have nickname "RatajS"
158158
$ssql->read("users", $ssql->cond()->eq("username", ["ratajs", "admin"])->eq("nickname", ["RatajS"], SQ::COND_OR));
159159

160160
//->not() negates the condition, this will select users with usernames other than admin
161161
$ssql->read("users", $ssql->cond()->eq("username", ["admin"])->not());
162162

163-
//It can also add another condition, this will select user that don’t have any nickname and with username other that "admin" or "root".
163+
//You can also add another condition, this will select users that don’t have any nickname with username other than "admin" or "root".
164164
$ssql->read("users", $ssql->cond()->eq("nickname", [""])->not($ssql->cond()->eq("username", ["admin", "root"])));
165165

166166
//Supported condition functions: ->eq(), ->lt(), ->gt(), ->lte(), ->gte(), ->like() and ->between()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.