0

when execute create database if not exists 7e7 ;

get error:

" 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 "

but execute create database if not exists 7b7 ;, its ok.

why?

docker container, mariadb:10.2

version 10.2.19-MariaDB-1:10.2.19+maria~bionic

1 Answer 1

0

7e7 looks too much like the number 70,000,000, in scientific notation.

When in doubt, surround database, table, and column names with backtics:

`7e7`
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.