Thread: mysql question
View Single Post
Old 04-09-2006, 12:29 PM  
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
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?
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote