MySQL LECTURE 1 PDF
MySQL LECTURE 1 PDF
What is My-SQL
My-SQL is used for relational Data Base Management system (RDBMS). Data Base is collection of
Data & Management system means creating file, Adding records, Deleting records, Editing records,
sorting records, Query records, Display records, etc.
2) Tables (File): Collection of related rows makes a table. In example all rows together is called
as a table.
2) To create a new database with a given name. (At a time You can create only one Database)
>CREATE DATABASE database name;
4) To Remove/Drop/Delete a database.
>DROP DATABASE databse name;
OR
OR
5) To Remove/Drop/Delete a table.
>DROP TABLE table name;
>ALTER TABLE table name ADD Column name data type attribute;
>ALTER TABLE table name MODIFY Column name Changes in data type or attributes;
>ALTER TABLE table name CHANGE Old column name new column name;
OR
OR
>UPDATE table name SET column name = Changes WHERE Column name = Condition;
iii) To Display all the columns but selected Rows from the table.