https://github.com/mthirumalai2905/sql
SQL (Structured Query Language) is a programming language designed for managing and manipulating relational databases.
https://github.com/mthirumalai2905/sql
sql
Last synced: 4 months ago
JSON representation
SQL (Structured Query Language) is a programming language designed for managing and manipulating relational databases.
- Host: GitHub
- URL: https://github.com/mthirumalai2905/sql
- Owner: mthirumalai2905
- Created: 2024-03-31T19:35:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T05:59:24.000Z (about 2 years ago)
- Last Synced: 2025-01-17T22:12:14.929Z (over 1 year ago)
- Topics: sql
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL
SQL (Structured Query Language) is a programming language designed for managing and manipulating relational databases.
*Database*
Database is collection of data in a format that can be easily accessed(Digital)
A software application used to manage our DB is called DBMS (Database Management System)
*Types of Database*
Relational Databases-MySQL
Non-relational(NoSQL) Databases- mongoDB
## We Use SQL programming language to interact with relational databases
It is used to perform CRUD operations:
Create
Read
Update
Delete
```sql
CREATE DATABASE db_name;
DROP DATABASE db_name;
```
## Creating our first Table
```sql
USE db_name;
CREATE TABLE table_name(
column_name1 datatype constraint;
column_name2 datatype constraint;
column_name3 datatype constraint;
```
## Types of SQL Commands
DDL(Data Definition Language): create, alter, rename, truncate & drop
DQL(Data Query Language): select
DML(Data Modification Language): select, insertm update & delete
DCL(Data Control Language): grant and revoke
TCL(Transaction Control Language): start transaction, commit, rollback etc