Hi,
I am having difficulties in dropping a fk. The following is the table:
CREATE TABLE COMPANY (
COMPANY_ID VARCHAR(32) NOT NULL,
COMPANY_NAME VARCHAR(32) NOT NULL,
ADDRESS VARCHAR(32) NOT NULL,
LOCATION VARCHAR(32) NOT NULL,
PHONE CHAR(8) NOT NULL,
MODE VARCHAR(32) NOT NULL,
GROUP_ID VARCHAR(32) NOT NULL,
PRIMARY KEY (COMPANY_ID),
FOREIGN KEY(GROUP_ID) REFERENCES GRP(GRP_ID));
When I tried to delete the foreign key away, the error code:1025 will pop out, saying something like the table cannot be renamed.
May I know what is wrong?
I am having difficulties in dropping a fk. The following is the table:
CREATE TABLE COMPANY (
COMPANY_ID VARCHAR(32) NOT NULL,
COMPANY_NAME VARCHAR(32) NOT NULL,
ADDRESS VARCHAR(32) NOT NULL,
LOCATION VARCHAR(32) NOT NULL,
PHONE CHAR(8) NOT NULL,
MODE VARCHAR(32) NOT NULL,
GROUP_ID VARCHAR(32) NOT NULL,
PRIMARY KEY (COMPANY_ID),
FOREIGN KEY(GROUP_ID) REFERENCES GRP(GRP_ID));
When I tried to delete the foreign key away, the error code:1025 will pop out, saying something like the table cannot be renamed.
May I know what is wrong?