Does MySQL allows to create database with dot?

前端 未结 4 1275
南笙
南笙 2020-11-30 09:48

Does MySQL allows to create database which has dot (.) in its name?

I\'m using MySQL 5.1.22.

4条回答
  •  我在风中等你
    2020-11-30 10:25

    Before MySQL 5.1.6, database and table names cannot contain /, \, ., or characters that are not allowed in file names (see 8.2. Schema Object Names). In versions after 5.1.6 you have to quote your tablename with a backtick (`) - but as others also advised: you shouldn't do this to prevent any unnecessary trouble.

提交回复
热议问题