CREATE TABLE customer
(custid NUMBER(5) CONSTRAINT customer_custid_pk PRIMARY KEY,
last VARCHAR2(30) CONSTRAINT customer_last_nn NOT NULL,
first VARCHAR2(30));
what's the difference in specifying the primary key as above or just saying????
CREATE TABLE customer
(custid NUMBER(5) not null unique,
last VARCHAR2(30) CONSTRAINT customer_last_nn NOT NULL,
first VARCHAR2(30),
primary (custid);
(custid NUMBER(5) CONSTRAINT customer_custid_pk PRIMARY KEY,
last VARCHAR2(30) CONSTRAINT customer_last_nn NOT NULL,
first VARCHAR2(30));
what's the difference in specifying the primary key as above or just saying????
CREATE TABLE customer
(custid NUMBER(5) not null unique,
last VARCHAR2(30) CONSTRAINT customer_last_nn NOT NULL,
first VARCHAR2(30),
primary (custid);
