Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   SQLite Help: WHERE (https://forums.graalonline.com/forums/showthread.php?t=134256529)

Switch 10-17-2009 08:12 PM

SQLite Help: WHERE
 
Is there any way you can make a WHERE statement have more than 1 expression, that way I don't have to have a loop to make sure all the columns match with what I want, but can do it in 1 step.
Similar to && in an if () statement.

fowlplay4 10-17-2009 08:15 PM

You'll find that SQL is often exactly how you think it.

NPC Code:

SELECT whatever
FROM table
WHERE rawr=1
AND meow=2



Here's a good resource to check out for SQL.

http://w3schools.com/sql/default.asp

Switch 10-17-2009 08:26 PM

Quote:

Originally Posted by fowlplay4 (Post 1531362)
You'll find that SQL is often exactly how you think it.

NPC Code:

SELECT whatever
FROM table
WHERE rawr=1
AND meow=2



Here's a good resource to check out for SQL.

http://w3schools.com/sql/default.asp

Thanks :)
I was reading from http://www.sqlite.org/lang_select.html and http://www.sqlite.org/lang_update.html which didn't have AND anywhere.
But I guess I didn't read far enough in http://www.sqlite.org/lang_expr.html :p


All times are GMT +2. The time now is 08:26 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.