A table can have one primary key, including a composite primary key defined at table level. DEFAULT SYSDATE NOT NULL is a valid date-column definition, so the statement with the composite primary key on ord_no and item_no is valid. Oracle requires a default expression after DEFAULT, and column constraints cannot be separated as separate comma-delimited items within one column definition.
Community Discussion