首页 > 解决方案 > MySQL Keywords as column name

问题描述

Scenario I have a MYSQL table with a column called text. I've only recently realized that TEXT is in fact a MYSQL keyword, but I haven't had any problems using that column name.

Background I've already noticed from the MYSQL documentation that there is a difference between reserved words and keywords: reserved words are more restrictive in that they need to be quoted with back ticks if you want to use them as identifiers. This question is about keywords, not reserved words.

Question Are there any problems that could come up with having a keyword such as text or type as a column name?

标签: mysqlkeywordtable-structure

解决方案


推荐阅读