Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Trying to pull a specific column, using a select statement with a where clause. I know this username kimS is in the row username, but I keep getting the error 'Invalid Column Name'. This is probably so simple that its not funny but Im a newb and this is pissing me off, lol. Thanks for any help available.

SQL
SELECT *
FROM  Users Where Username = kimS
Posted

1 solution

SQL
SELECT * FROM Users WHERE Username = 'kimS'

Literal strings always need to be enclosed in single quotes. Cheers.
 
Share this answer
 
Comments
JasonMacD 1-Nov-12 11:02am    
Thanks Marcus, had a brain fart, lol!!
fjdiewornncalwe 1-Nov-12 13:34pm    
No worries. We all have them more often than we like to admit. Cheers.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900