当执行如果不存在则创建数据库7e7;
得到错误:
" SQL Error [1064] [42000]: (conn:67) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '7e7' at line 1 Query is : create database if not exists 7e7 "
但执行create database if not exists 7b7 ;
,就可以了。
为什么?
docker container, mariadb:10.2
version 10.2.19-MariaDB-1:10.2.19+maria~bionic
最佳答案
7e7 看起来太像科学记数法中的数字 70,000,000。
如有疑问,请用反引号包围数据库、表和列名称:
`7e7`
关于mysql - 在 Mariadb 中创建数据库时出现惊人的 SQL 错误 1024,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53422841/