Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1987

MYSQL data type changes without affecting existing table foreign key costraints

$
0
0
hi i have to optimize my database which has 212 table , actutaly one table primary key is acting as foriegnkey for 94 tables.for example i have table
Code:
 create table CUSTOMER (
        CUSTOMER_ID BIGINT NOT NULL,
        CUSTOMER_NAME VARCHAR(255) NOT NULL UNIQUE,
        CONTACT_PERSON VARCHAR(255) NOT NULL,
        CUSTOMER_EMAIL VARCHAR(255) NOT NULL,
        ADDRESS VARCHAR(255),
        CITY VARCHAR(255),
        PHONE VARCHAR(255),
        FAX VARCHAR(255),

        constraint...
MYSQL data type changes without affecting existing table foreign key costraints

Viewing all articles
Browse latest Browse all 1987

Trending Articles