Skip to content
Advertisement

What cause SQL syntax error in creating table in database

When creating a table in mysql query I get the error as below.

I could not understand what is causing this error. The query is as below.

Advertisement

Answer

You appear to be using Java types in your create table statement. Try using proper MySQL types and it should work:

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