This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

SQL question
#3
(05.02.2021, 07:46)admin Wrote: LIKE "something" is an exact match but not case-sensitive. LIKE "%something%" is a partial match which looks for values that contain "something".

OK, but still I do not see it.
If I use the code 
Code:
elementer = db:getall('SELECT name FROM visobjects WHERE floor LIKE ? AND type NOT LIKE ?', origID, 6)

I will get a result. In this I am also looking for objec(s) containing "something", am I not? The values in the variables in my first post are the same in both examples.
There are 10 kinds of people in the world; those who can read binary and those who don't  Cool
Reply


Messages In This Thread
SQL question - by Trond Hoyem - 05.02.2021, 07:39
RE: SQL question - by admin - 05.02.2021, 07:46
RE: SQL question - by Trond Hoyem - 05.02.2021, 07:54
RE: SQL question - by admin - 05.02.2021, 12:57
RE: SQL question - by Trond Hoyem - 05.02.2021, 13:33
RE: SQL question - by admin - 05.02.2021, 15:18

Forum Jump: