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
#6
You have "WHERE name LIKE ? AND name LIKE ?" which will only find something when both parameters are the same and there is an object with exactly the same name as both parameters.

When you use % wildcard on both sides it find objects where name contains parameter A and contains parameter B. For example it can find object named "aabbcc" when the first parameter is "aa" and the second one is "bb".
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: