Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anandkr21/sql
https://github.com/anandkr21/sql
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anandkr21/sql
- Owner: Anandkr21
- Created: 2023-04-04T11:28:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-31T15:14:39.000Z (over 1 year ago)
- Last Synced: 2023-07-31T12:40:52.665Z (over 1 year ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL
# What are different SQL databases?
- MySQL
- PostgreSQL
- SQLite
- Microsoft SQL Server
- MariaDB
- Oracle
# What are RDBMS?
- A relational database is a databasae in which data is organized into tables with predefined rows and columns. An inherent correlation between them characterizes the data points in these tabeles.
- For example, a good example of a relational database includes the complete record of the students belonging to a particular class in a school.
- The structure of a relational database encompasses multiple rows containing records. Each record is linked with a unique indetifier called primary key, which uniquely indentifies that record. In the student's record database, the roll number or the student's admission number could be considered the primary key to uniquely indetify each record. MySQL, PostgreSQL, MariaDB are some examples of relational databases.
# How to Create table in SQL ?
- Open cmd and write command
- cd " < select root directory of your sql >"
- ex: cd "C:\program files\ mysql\ mysql server 8.0\bin"
- mysql -u root -p
- enter your password
- create database ;
- use ;
- create table (name varchar(15), roll_no int);
- insert into (name,roll_no) values("anand", 21);
- select * from users;## Please refer image for better understanding
![2023-04-05T12_52_15](https://user-images.githubusercontent.com/113422735/230013133-fb350ed2-1da5-409d-a3e7-ae5c2592dd0b.png)