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 :: postgresql between 
Sql :: MySQL error code 2068 
Sql :: show last sql executed in oracle 
Sql :: windows could not start the sql server on local computer 
Sql :: how to install mysql workbench in ubuntu 20.04 
Sql :: update statement postgres 
Sql :: create user in mysql 
Sql :: mysql update LAST_INSERT_ID() 
Sql :: to_sql pandas 
Sql :: sql select only row with the max date 
Sql :: sqlstate[hy000] [2006] mysql server has gone away laravel 
Sql :: create database with hyphen sign mysql 
Sql :: install sql server in ubuntu 20.04 
Sql :: postgresql add not null and not empty constraint 
Sql :: index in mysql 
Sql :: mysql with docker 
Sql :: SQL MIN() Function 
Sql :: stuff and replace in sql 
Sql :: oracle multiple insert 
Sql :: how to generate er diagram in mysql workbench 
Sql :: postgresql functions 
Sql :: if mysql UPDATE 
Sql :: System.Diagnostics.Process is not supported on this platform 
Sql :: oracle activate program 
Sql :: mysql group by derived column 
Sql :: reorder primary key sql 
Sql :: oracle single row functions 
Sql :: parent: [Error: SQLITE_READONLY: attempt to write a readonly database] { 
Sql :: One table with another 
Sql :: delete in sql 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =