SQL statements tell the database what operation you want to perform on the structured data and what information you would like to access from the database. SQL are very simple and easy to use and understand.
Simple Example of SQL statement:
SQL statement begins with any of the SQL keywords and ends with the semicolon (;). The semicolon is used in the SQL for separating the multiple Sql statements which are going to execute in the same call. In this SQL tutorial, we will use the semicolon (;) at the end of each SQL query or statement.
Let's discuss each statement in short one by one with syntax and one example:
This SQL statement reads the data from the SQL database and shows it as the output to the database user.
Syntax of SELECT Statement:
This SQL statement changes or modifies the stored data in the SQL database.
Syntax of UPDATE Statement:
This SQL statement deletes the stored data from the SQL database.
Syntax of DELETE Statement:
This SQL statement creates the new table in the SQL database.
Syntax of CREATE TABLE Statement:
This SQL statement adds, deletes, and modifies the columns of the table in the SQL database.
This SQL statement deletes or removes the table and the structure, views, permissions, and triggers associated with that table.
This SQL statement creates the new database in the database management system.
This SQL statement deletes the existing database with all the data tables and views from the database management system.
This SQL statement inserts the data or records in the existing table of the SQL database. This statement can easily insert single and multiple records in a single query statement.
This SQL statement deletes all the stored records from the table of the SQL database.
This SQL statement tells something about the specified table or view in the query.
This SQL statement shows the distinct values from the specified columns of the database table. This statement is used with the SELECT keyword.
This SQL statement saves the changes permanently, which are done in the transaction of the SQL database.
This SQL statement undo the transactions and operations which are not yet saved to the SQL database.
This SQL statement creates the new index in the SQL database table.
This SQL statement deletes the existing index of the SQL database table.
This SQL statement selects the existing SQL database. Before performing the operations on the database table, you have to select the database from the multiple existing databases.
0 Comments
Thanks for Supporting me