SQL Commands
SQL Commands
Create Database
CREATE DATABASE CPS;
Display database
SHOW DATABASES;
Use Database
USE CPS;
Create Table
CREATE TABLE STUDENT
CLASS VARCHAR(5),
ADDRESS CHAR(50),
DOB DATE,
FEES NUMERIC);
Arrange in order
SELECT SNAME FROM STUDENT ORDER BY SNAME; // Ascending order
MySQL Questions:
1. What is DBMS? What are the advantages of DBMS.
5. What are the different types of keys available in MySQL? Explain them.
6. What are the different languages used in MySQL and also write their commands.