Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

create table mysql

CREATE TABLE IF NOT EXISTS `sys_user_details` (
    user_detail_id INT(11) AUTO_INCREMENT,
    user_id INT(11),
    name VARCHAR(100) NOT NULL,
    email VARCHAR(200) NOT NULL,
    education VARCHAR(100) DEFAULT NULL,
    skills VARCHAR(100) DEFAULT NULL,
    experience VARCHAR(100) DEFAULT NULL,
    CONSTRAINT PK_sys_user_details PRIMARY KEY (user_detail_id),
    CONSTRAINT FK_sys_user_details_user_id FOREIGN KEY (user_id)
    REFERENCES sys_user(user_id)
        ON UPDATE RESTRICT ON DELETE CASCADE
);
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #create #table #mysql
ADD COMMENT
Topic
Name
6+3 =