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
::  
::  
::  
::  
::  
:: jquery link 
::  
Javascript ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
::  
::  
::  
:: is advanced functions harder than calculus 
::  
Javascript ::  
::  
::  
::  
::  
::  
::  
ADD CONTENT
Topic
Content
Source link
Name
5+5 =