Search
 
SCRIPT & CODE EXAMPLE
 

SQL

foreign key sqlite3 python

CREATE TABLE supplier_groups (
	group_id integer PRIMARY KEY,
	group_name text NOT NULL
);

CREATE TABLE suppliers (
    supplier_id   INTEGER PRIMARY KEY,
    supplier_name TEXT    NOT NULL,
    group_id      INTEGER NOT NULL,
    FOREIGN KEY (group_id)
       REFERENCES supplier_groups (group_id) 
);
Code language: SQL (Structured Query Language) (sql)
Comment

PREVIOUS NEXT
Code Example
Sql :: change default role snowflake 
Sql :: zsh: command not found: mysql mamp 
Sql :: job for postgresql.service failed because the control process exited with error code. see "systemctl status postgresql.service" and "journalctl -xe" for details. 
Sql :: how to add unique key constraint in mysql 
Sql :: sqlite drop table 
Sql :: postgresql list users 
Sql :: show procedures mysql 
Sql :: mysql procedures 
Sql :: convert rows to columns in sql server 
Sql :: drop foreign key mysql 
Sql :: select all except one column sql 
Sql :: drop unique key constraint in sql server 
Sql :: date formats in sql server 
Sql :: postgres select max value 
Sql :: SQL rounding numbers 
Sql :: mysql date time string format python 
Sql :: sql update table remove spaces 
Sql :: duplicate table sql 
Sql :: mysql url 
Sql :: how to get nearest location in mysql with latitude and longitude 
Sql :: sql select sum group by id laravel 
Sql :: get all tables using like 
Sql :: Assign value to var in SQL 
Sql :: oracle desc table primary key 
Sql :: renombrar tabla mysql 
Sql :: plsql print 
Sql :: update query in sql server 
Sql :: condition in count sql 
Sql :: sql pagination 
Sql :: wildcard in sql 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =