MySQL error: Unknown column in 'where clause'

后端 未结 5 1538
栀梦
栀梦 2020-12-16 17:14

I have a table called bank with three columns: uid, nick, balance.

I am trying to create a query that will return

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 17:26

    You are using the wrong "`"

    Use ' instead

    SELECT b.balance FROM bank AS b WHERE b.nick='Alex' LIMIT 1
    

提交回复
热议问题