I have a table called bank
with three columns: uid
, nick
, balance
.
I am trying to create a query that will return the balance based on the nick, and I am getting an error Unknown column 'Alex' in 'where clause'
when I use this query:
SELECT b.balance FROM bank AS b WHERE b.nick=`Alex` LIMIT 1
Can anyone see what I am doing wrong here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…