All,
I am using TOAD on and Oracle 8i database. I have created a sequence called seq_loc_id. Now I need to implement that sequence into an existing table. I'm not sure how.
My table is ops_locations. There is a column called pk_loc_id. There is currently no data in this table. Can I alter this table so that the column pk_loc_id uses the sequence?
CREATE TABLE OPS_LOCATIONS (
PK_LOC_ID NUMBER (8) NOT NULL,
GREGION VARCHAR2 (30) NOT NULL,
CITY VARCHAR2 (30),
LOCATION VARCHAR2 (60),
COUNTRY VARCHAR2 (30),
LOCATION_TYPE VARCHAR2 (25),
CONSTRAINT PKOPS_LOCATIONS
PRIMARY KEY ( PK_LOC_ID )
Thank you & Brgds,
Denise
I am using TOAD on and Oracle 8i database. I have created a sequence called seq_loc_id. Now I need to implement that sequence into an existing table. I'm not sure how.
My table is ops_locations. There is a column called pk_loc_id. There is currently no data in this table. Can I alter this table so that the column pk_loc_id uses the sequence?
CREATE TABLE OPS_LOCATIONS (
PK_LOC_ID NUMBER (8) NOT NULL,
GREGION VARCHAR2 (30) NOT NULL,
CITY VARCHAR2 (30),
LOCATION VARCHAR2 (60),
COUNTRY VARCHAR2 (30),
LOCATION_TYPE VARCHAR2 (25),
CONSTRAINT PKOPS_LOCATIONS
PRIMARY KEY ( PK_LOC_ID )
Thank you & Brgds,
Denise