Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

composite keys sql code example

Example 1: how to define a composite primary key in sql

CREATE TABLE person(id INT, 
					name TEXT,
					PRIMARY KEY (id, name)
				   );

Example 2: sql composite key

CREATE TABLE TABLE_NAME  
(COLUMN_1, DATA_TYPE_1,  
COLUMN_2, DATA_TYPE_2,  
....
PRIMARY KEY (COLUMN_1, COLUMN_2, ...));

Tags:

Sql Example

Related

how to delete duplicates in a list python using .remove code example kotlin timestamp - timestamp code example get disks c# code example gql apollo return error code example dynamic website in django code example trim characters from end of string javascript code example install julia on ubuntu code example background-image no-repeat center center code example order a list based on numbers in it javascript code example script tags in jsx code example list all commands bash code example C# dictionary multiple keys code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy