Giter Club home page Giter Club logo

sql's Introduction

Sql(Structured Query Language)

Notes and study materials on sql

Four Types of Sql Statements:

1.DDL(Data Definition Language):Providesstatements to specify the storage structure of database.

  1. CREATE: used to create new tables.
  2. ALTER: used to change the structure of the database table.
    This statement can add up additional column, drop existing,and even change the data type of columns ivolved in a d/b table.
  3. DROP:Used to delete tables from database.
  4. RENAME:used to rename a table.

2.DML(Data Manipulation Language):Used for the manipulation with d/b objects. It is used to query the databases for information retrieval.

1.SELECT: used to retrieve data from a database.
2. INSERT: used to insert data into a table.
3. UPDATE:Used to update in the table.
4. DELETE:used to delete all records from the table.

3.DCL(Data Control Language):It is used to assign the security levels in the database,which involves multiple ser setups. They are used to grant defined role and access privileges to the users.

1.GRANT:used to give access privilege of d/b to user.
2.REVOKE:used to withdraw access privileges given with grant command.

4.TCL(Transaction Control Language):It is used for controlling the transactions in a database system.
1.COMMIT:used to save the work done.
2.SAVEPOINT:used to identify a point in a transaction in which you can later rollback
3.ROLLBACK:used to restore database to its original since the last commit.
4.SET TRANSACTION:establishes properties for the current transactions.

sql's People

Contributors

aisharawat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.