Jump to content
xisto Community
Eggie

Sql Syntax Error [corrected] apostrophes missing

Recommended Posts

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

i get that error when i type this in MYSQL
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
select bike from members where username='Eggie'

Edited by yordan (see edit history)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.