Skip to content
Advertisement

problem with constraint order in create table in livesql

This gives error:

This doesn’t:

Why?

Advertisement

Answer

Each DBMS defined it’s syntax to write SQL. It only works if you obey their rules. It’s kind of obeying the law of a country while you are in it. You can’t ask why I should do that? You have to. Or choose any dbms you like.

If your dbms tells you to follow this syntax

then you just have to.

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