KnowledgeBoat Logo
|

Informatics Practices

Write MySQL statements for the following :

(i) To create a database named FOOD.

(ii) To create a table named Nutrients based on the following specification :

Column NameData TypeConstraints
Food_ItemVarchar(20)Primary Key
CalorieInteger

DDL & DML

4 Likes

Answer

(i)

CREATE DATABASE FOOD;

(ii)

CREATE TABLE Nutrients
(Food_Item Varchar(20) Primary Key,
Calorie integer);

Answered By

1 Like


Related Questions