|
#1
|
|||
|
|||
|
Hi, I am using mysql 5.0.67 and am using the following to find the made up term
terewSCode:
SELECT ID, summary, category FROM news WHERE (lcase(concat(ID, summary, category)) LIKE '%
Code:
SELECT ID, summary, category FROM news WHERE (lcase(concat(ID, summary, category)) LIKE '%
The code does work with the 4.0 database. I am looking into it. If I figure out the answer before anyone else does I will post a reply with the solution.
__________________
To choose the lesser of two evils is still to choose evil. Last edited by james438; 11-04-2009 at 06:17 PM. |
|
#2
|
|||
|
|||
|
got it. The problem was with concat, not lcase.
Quote:
In other words to fix this I would need to convert my argument to Code:
SELECT ID, summary, category FROM news WHERE lcase(concat(cast(ID as char),summary,category)) LIKE '%terews%'
__________________
To choose the lesser of two evils is still to choose evil. Last edited by james438; 11-04-2009 at 08:51 AM. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|