Keywords and Reserved Words
来源:互联网 发布:锁定4g网络 编辑:程序博客网 时间:2024/06/16 13:35
BIGINT, are reserved and require special treatment for use as identifiers such as table and column names.
This may also be true for the names of built-in functions.
在sql中keywords是非常重要的字。特别的keywords,例如:select,delete,或者bigint 是保留的并要求特别对待的,当应用在表和字段时。function的名字也是如此。
Nonreserved keywords are permitted as identifiers without quoting. Reserved words are permitted as identifiers if you quote them as described in Section 9.2, “Schema Object Names”:
非保留的keywords是被使用不需要引用他们的。保留的words被使用,需要你去引用他们
ERROR 1064 (42000): You have an error in your SQL syntax ...
near 'interval (begin INT, end INT)'
BEGIN and END are keywords but not reserved, so their use as identifiers does not require quoting.INTERVAL is a reserved keyword and must be quoted to be used as an identifier:
BEGIN和END是keywords但是非保留的,所以他们被使用时不需要引用。INTERVAL 是保留的keyword
Query OK, 0 rows affected (0.01 sec)
Exception: A word that follows a period in a qualified name must be an identifier, so it need not be quoted even if it is reserved:
keyword是保留,如果使用全名不需要引用,如下:
Query OK, 0 rows affected (0.01 sec)
example, COUNT is acceptable as a column name. However, by default, no whitespace is permitted in
function invocations between the function name and the following ( character. This requirement enables
the parser to distinguish whether the name is used in a function call or in nonfunction context. For further
details on recognition of function names, see Section 9.2.4, “Function Name Parsing and Resolution”.
individual words from version to version. Reserved keywords are marked with (R). In addition, _FILENAME
is reserved.
words, too. You can find these in the manuals that cover higher versions of MySQL. Most of the reserved
words in the table are forbidden by standard SQL as column or table names (for example, GROUP). A few
are reserved because MySQL needs them and uses a yacc parser.
- Keywords and Reserved Words
- Java Key words and Reserved words
- Reserved words comparision
- Oracle Database Reserved Words
- Scala Reserved Words
- JavaScript中的保留字Reserved Words
- Javascript保留字(Javascript Reserved Words)
- Javascript关键字(Reserved Words) 保留字
- Javascript保留字(Javascript Reserved Words)
- VHDL保留字(Reserved Words)
- reserved
- Reserved
- 保留关键字(Reserved Words)导致的Jpa保存错误
- Java之关键字(keywords)和保留字(reserved word)
- Professional JS(三.Language basic-syntax&keywords&reserved&variables&half data type)&黑画(5)
- java keywords and language tutorial
- Robot: Duplicate Keywords in Library and Resource Keywords
- English words and phrase
- 使用 spring框架 获取 session
- 记录一些常用的utils方法5
- 二维数组的查找
- JS中的迭代器和生成器
- Linux的多线程--同步与互斥
- Keywords and Reserved Words
- 互联网金融MySQL优化参数标准
- QML之Timer定时器
- ListView填充多个item
- Java的自动装箱与拆箱(Autoboxing and Unboxing)
- 万字长文精心整理21个常用Linux命令详解及使用案例
- 选择排序(直接选择、堆排序)
- NDK移植编译&心得&ADB简单应用
- windows程序转linux遇到的坑