質問

I have table created by ORM named 'key'. 'key' is MySQL keyword so I cannot select it just SELECT * FROM key;.

How to perform select from table named 'key' in MySQL?

役に立ちましたか?

解決

Try to escape your table name with backticks `

SELECT * FROM `key`

This will make your database understand key is a table

他のヒント

you can do

select * from [key]
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top