USE Study
GO

CREATE TABLE orders5(
	oseq INT IDENTITY(1, 1),
	quantity VARCHAR(20) NULL,
	indate DATETIME NULL,
	id VARCHAR(20),
	pcode VARCHAR(20)
)

ALTER TABLE orders5
ADD CONSTRAINT PK_oseq5 PRIMARY KEY (oseq)

ALTER TABLE orders5
ADD CONSTRAINT FK_id5 FOREIGN KEY (id) REFERENCES customer(id)

ALTER TABLE orders5
DROP CONSTRAINT FK_id5