SQL Command
SQL Command
SQL Languages
CREATE Command
ALTER Command
DROP Command
This DDL command allows us to remove the table definition and data
from the SQL systems.
This DDL command allows the database users to remove all the
existing records from the table.
RENAME Command
This DDL command allows the users to change the name of the
existing table.
We can use this type of language when we want to access the record,
insert the new record, update the record, and delete the existing values
from the tables.
SELECT Command
This DML command allows us to access the stored records from the
tables. We can also use the condition in the SELECT command for
accessing the particular rows.
This DML command allows the database users to insert the new
record or rows in the tables.
UPDATE Command
This DML command allows the database users to change the existing
record or rows in the tables.
Following are the two DCL Languages or commands used in the SQL
queries:
Let's discuss the above two DCL commands one by one with syntax
and examples.
GRANT Command
REVOKE Command
Following are the two TCL Languages or commands used in the SQL
queries:
1. Commit TCL Command
2. Rollback TCL Command
Let's discuss the above TCL commands one by one with syntax and
examples.
COMMIT Command
This command allows the database users to save the operations in the
database.
COMMIT;
Rollback Command
ROLLBACK;