mysql - 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?
- If yes, in which scenario?
- If not, why do we even care that they are keywords? Is there any difference at all to a custom name?
解决方案
推荐阅读
- xcode - 我是否必须获得一个苹果开发者帐户才能将 Apple Health Kit Api 用于我的 React Native 应用程序?
- unit-testing - Nestjs 测试 - 服务方法在不应该返回数据时返回
- perl - XS.c:可加载库和 perl 二进制文件不匹配(获得握手密钥 0xce00080,需要 0xdb80080)
- javascript - Ajax 请求中的 Django Forbidden(CSRF 令牌丢失或不正确。)
- amazon-web-services - AWS ECS + EFS + Spot 实例
- ruby - Ruby 通过调用方法创建哈希内容
- r - 'family' 参数不是带有偏移量的泊松回归的有效家庭对象?
- node.js - Json2csv 解析器解析时间过长
- c# - 无法隐式转换类型'System.Action
' 到 'mathtester.Program.OperationQuestionScore' - javascript - 按钮 onClick 函数(this)返回窗口对象