Why DB constraints are not added during table creation.
- by Pratik
Hi All,
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