How to update primary key?
问题 I am writing a script that has to update some rows without changing the contents of another script that creates a few tables. Another condition is that you cannot alter or drop constraints. Contents of Create table script: CREATE TABLE TRUCK( REGNUM VARCHAR(10) NOT NULL, CAPACITY DECIMAL(7) NOT NULL, WEIGHT DECIMAL(5) NOT NULL, STATUS VARCHAR(10) NOT NULL, CONSTRAINT TRUCK_PKEY PRIMARY KEY(REGNUM), CONSTRAINT TRUCK_STATUS CHECK (STATUS IN ('AVAILABLE', 'MAINTAINED', 'USED')); and there are