sql select statement giving column error

前端 未结 3 1470
眼角桃花
眼角桃花 2021-01-28 09:59

When i use

SELECT order_id from `order` where `order_id`=U687678601

i get error

ERROR 1054: Unknown Column \'U68767

3条回答
  •  时光说笑
    2021-01-28 10:24

    'U687678601' is a string (not a number), and not a field in your table; so it must be quoted.

提交回复
热议问题