[sql] Food_List

Viewer

copydownloadembedprintName: Food_List
  1. CREATE TABLE Food (
  2.     Food_Name VARCHAR(255) NOT NULL,
  3.     Protein INT(3) NOT NULL,
  4.     Carbohydrate INT(3) NOT NULL,
  5.     Fat INT(3) NOT NULL,
  6.     Calories INT(3) NOT NULL
  7. );
  8.  
  9. INSERT INTO Food ( Food_Name, Protein, Carbohydrate, Fat, Calories) VALUES ( 'Chicken Breast', 53, 0, 6, 266)
  10.  
  11. INSERT INTO Food ( Food_Name, Protein, Carbohydrate, Fat, Calories) VALUES ( 'Apple', 1, 25, 1, 113);    
  12.  
  13. INSERT INTO Food ( Food_Name, Protein, Carbohydrate, Fat, Calories) VALUES ( 'Banana', 1, 27, 1, 121);
  14.       

Editor

You can edit this paste and save as new:


File Description
  • Food_List
  • Paste Code
  • 06 May-2021
  • 520 Bytes
You can Share it: