• home
  • Getting started
  • CSS
  • Components
  • JavaScript
  • Customize

test-sqldexter

  • Getting started
  • CSS
  • Components
  • JavaScript
  • Customize
  • Dropdown
    • Action
    • Another action
    • Something else here
    • Separated link

Friday, October 17, 2014

SQL Query Categories

Posted by Akarsh Nagariya at 2:01 PM Labels: MYSQL , ORACLE , SQL , TERADATA
SQL Query Categories:
  • DDL – It stands for Data Definition Language. These statement used to define the structure of database and schema.
    • CREATE – creates object in database
    • DROP – deletes object from database
    • ALTER – alters structure of database
    • TRUNCATE – Removes all records from a table
    • COMMENT – Add comment to data dictionary
    • RENAME – rename an object in database.

  • DML - Data Manipulation Language (DML) statements are used for data manipulation.
    • INSERT – inserts data into a table
    • SELECT – retrieve/fetch data from database
    • UPDATE – update existing data within a table
    • DELETE – deletes data from a table
    • UPSERT – Update on duplicate else insert data into a table
? Why Truncate is a DDL statement while delete is DML although both achieve same result??
  • DCL – Data Control Language (DCL) statements uses for control over data. It control access rights of users.
    • GRANT – gives access permission to database
    • REVOKE – withdraw access privilege given to user/users
  • · TCL – Transaction Control Language(TCL) statement controls atomicity of the statements. It controls transaction.
    • COMMIT –saves permanently into database.
    • ROLLBACK – Restore database to its previous stable state
    • SAVEPOINT – Identify a point to which transaction can be rolled back in case of any error/issue.
    • START TRANSACTION – Indicates starting point of transaction
Tweet

No comments :

Post a Comment

Older Post Home
Subscribe to: Post Comments ( Atom )

search this website

email updates

Like us on facebook

Powered by Blogger.

Contributors

Akarsh Nagariya
View my complete profile

Followers

Tagged In

  • MYSQL
  • ORACLE
  • SQL
  • TERADATA

  • MySQL
  • SQL
  • Oracle
  • Teradata
  • NoSQL
    Category

    MongoDB

    Couchbase

    Cassandra

    Maria DB

    Coming Soon

  • Data-Warehousing
  • Data-Mining
  • Contact-Us

Search This Blog

Search This Blog

Twitter Updates

Blog Archive

  • 2014 (2)
    • October (2)
      • SQL Query Categories
      • Brief History of SQL

Popular Posts

  • Brief History of SQL
    SQL stands for structured query language. SQL is a kind of programming language specially designed for managing relational database manageme...
  • SQL Query Categories
    SQL Query Categories: DDL – It stands for Data Definition Language. These statement used to define the structure of database and schema. CR...

© test-sqldexter 2013 . Powered by Bootstrap , Blogger templates and RWD Testing Tool