What is the difference between these to ways of table creation.
CREATE TABLE TABLENAME(
field1....
field2...
add constraint constraint1;
add constraint constraint2;
)
AND
CREATE TABLE TABLENAME(
field1....
field2...
)
ALTER TABLE TABLENAME add constaint1
ALTER TABLE TABLENAME add constaint2
Moreover the first scripts fails on the SQL+ but they pass on sqldeveloper
Thanks!
Pratik
The difference seems to be that the first method is a single statement whereas the second one uses three distinct statements. IF the statements succeed, the overall result will be the same.
You might want to check your synthax though (especially the use of “;”):