MySQL中反引号是为了区分保留字和普通字的符号。

MySQL中有一些字段是保留字。如 select, desc 等。如果我们想用这些字段作为数据库名或表名,就需要用反引号将它们包起来。如:

CREATE TABLE desc    #报错
CREATE TABLE `desc`    #不报错

当然这只是正常的用法。不正常的嘛……

Jarvis OJ : inject

Last modification:May 24th, 2021 at 04:19 pm
If you think my article is useful to you, please feel free to appreciate