bookmark - Sql Syntax Error  [corrected] apostrophes missing

Sql Syntax Error [corrected] - apostrophes missing

 
 Discussion by Eggie with 2 Replies.
 Last Update: February 18, 2008, 10:15 am
 
bookmark - Sql Syntax Error  [corrected] apostrophes missing  
    
free web hosting
 

QUOTE

#1054 - Unknown column 'Eggie' in 'where clause'

i get that error when i type this in MYSQL

CODE

select bike from members where username=Eggie

i have column bike,members and username...
and i have information in every of those columns...
but why does it say that there is no COLUMN because i said i want info from row where column 'username' is 'Eggie'

btw-YAY..my 101 post

EDIT:sorry...i just solved it i forgot to put apostrophes

CODE

select bike from members where username='Eggie'

Sun Feb 17, 2008    Reply    New Discussion   


Well, this is always something a lot of ppl miss easily. Because the error "Unknown column" is quite misleading in this case. Anyway, it's good that you found out yourself.

Mon Feb 18, 2008    Reply    New Discussion   

QUOTE

sorry...i just solved it i forgot to put apostrophes

congrats for the self-repairing. I slightly touched the topic title in order to make it reflect the facts.

Mon Feb 18, 2008    Reply    New Discussion   

Quickly Post to Sql Syntax Error  [corrected] apostrophes missing w/o signup Share Info about Sql Syntax Error  [corrected] apostrophes missing using Facebook, Twitter etc. email your friend about Sql Syntax Error  [corrected] apostrophes missing Print
Reply / Comment Ask a Question? Share / Bookmark E-Mail a Friend Print

Apache Php With Mysql On Windows   [solved]   Apache Php With Mysql On Windows [solved] (9) (4) Not Understanding Mysql   Not Understanding Mysql