Database 01

Database 01

Introduction of SQL

·

2 min read

Hello, welcome to my blog again. In this series, I will be writing about databases. 🚀🚀🚀🚀

Introdaction of SQL

  • SQL is a standard query language for storing, manipulating, and retrieving data in a database.

Things that SQL can do

CRUD (Create, Read, Update and Delete)

  • Create
    • can create a database
    • create new tables in a database
    • insert records in a database
    • can create stored procedures in a database.
  • Read

    • read data from the database
  • Update

    • update records in a database
  • Delete

    • delete records from a database
  • run/execute queries against a database

RDMS

  • RDMS stands for relational database management system .
  • data in RDBMS is stored in database objects called tables.
  • A table is a collection of related data entries and it consists of col and rows or fields and records.

Trending elements.png

SQL Rules

  • SQL is not case sensitive: select and SELECT are the same.
  • semicolon: is the standard way to separate each SQL statement in database systems that contains more than one statement to be executed in the same call to the server.

Common commands in SQL and what they do

commandwhat it does
Selectreads data from a database
Updateupdate data in a database
Deletedeletes data from a database
Insert intoinserts a new data into DB
Create databasecreates new DB
Alter tablemodifies a table
Drop tabledeletes a table
Create indexcreates an index(search key)
Drop indexdeletes an index

Did you find this article valuable?

Support Yusra's blog by becoming a sponsor. Any amount is appreciated!