MySQL error: Unknown column in 'where clause'

后端 未结 5 1550
栀梦
栀梦 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:21

    You need to use single-quote ('), not tick marks for values of your fields

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

    Tick marks are used to denote field names.

提交回复
热议问题