Search
 
SCRIPT & CODE EXAMPLE
 

SQL

create table mysql integer NOT null

CREATE TABLE IF NOT EXISTS checklists (
    todo_id INT AUTO_INCREMENT,
    task_id INT,
    todo VARCHAR(255) NOT NULL,
    is_completed BOOLEAN NOT NULL DEFAULT FALSE,
    PRIMARY KEY (todo_id , task_id),
    FOREIGN KEY (task_id)
        REFERENCES tasks (task_id)
        ON UPDATE RESTRICT ON DELETE CASCADE
);
Code language: SQL (Structured Query Language) (sql)
Comment

PREVIOUS NEXT
Code Example
Sql :: sql server create database 
Sql :: sql run multiple updates in one query 
Sql :: declare value in sql 
Sql :: where condition in mongodb 
Sql :: change permission to database mysql 
Sql :: postgresql function round 
Sql :: select only one row sql 
Sql :: how to tun mysql on ubunto 
Sql :: select last n rows mysql 
Sql :: sqlalchemy get schema from database 
Sql :: sql select where 
Sql :: TSQL function split string 
Sql :: json_value oracle 
Sql :: truncate your answer to decimal places mysql 
Sql :: oracle list days between two dates 
Sql :: convert html to plain text in sql server 
Sql :: sql latlng 
Sql :: homebrew install mysql 
Sql :: sql rename column in select query 
Sql :: delete table row in postgresql 
Sql :: how to use timestampdiff in a table in sql 
Sql :: sql roll up rows into columns 
Sql :: sql pivot without aggregate 
Sql :: connecting to postgresql on windows amd ubuntu 20.04 
Sql :: mysql 5.6 hierarchical recursive query 
Sql :: SQL Find text in SPs 
Sql :: Write SQL in ruby on rails 
Sql :: T sql less than date 
Sql :: difference between in and between in sql 
Sql :: how to delete last row in sql 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =