Skip to content
Advertisement

Why MariaDB refuses to create a simple table with error [42000][1064]?

I just want to know how to fix this, or why MariaDB server keeps me returning an error. I just install the database, create a user, a new schema, I’m pointing to that database with use database testing; and I’m ready to create a simple table on a database with this query:

The user in the database I’m using has granted all privileges. But MariaDB returns:

Can someone help me?

Advertisement

Answer

The data types are from Oracle, and you could set the SQL_MODE to accept that syntax:

In MariaDB 10.3 and later, setting the sql_mode system variable to Oracle allows the server to understand a subset of Oracle’s PL/SQL language. For example:

Keep in mind that NUMBER and VARCHAR2 are synonyms:

db<>fiddle demo

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement