![]() |
mysql question
i have a table with 1 column (authors) in this form:
row1: ..,Sam,Jhon_Wilson,Mike,Terry,... row2:...,Dona,Jhon,Wilson,David,... row2:...,Jenny,Barbara,Anderson,... i want to make a select: select from books where authors like '%,Jhon_Wilson,% in order to retourn the fist row but this select is returning both rows (first row with ,Jhon_Wilson, and second row with ,Jhon,Wilson,) what is the correct sintax to retourn only the fist row? |
Oh wow...you should never have a table with data like that. Anyway... add LIMIT 1 onto the end of your sql.
|
bad idea....
I just think you missed one ' try this query: SELECT FROM books WHERE authors like '%,Jhon_Wilson,%'; |
Jhon or John?
|
| All times are GMT -7. The time now is 08:17 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123