Professional Documents
Culture Documents
UPDATE tablename
SET columnname = expression, columnname = expression
WHERE columnname = expression;
Deletion:
SELECT columnname,columnname
FROM tablename
ORDERBY columnname,columnname;
SELECT columnname,columnname
FROM tablename,
GROUPBY columnname,columnname;
Removing/Deleting/Dropping Tables:
Indexes:
Destroying a View:
Cursors:
Declaration :
Cursor Handling :
1. OPEN <CURSOR_NAME>;
2. FETCH <CURSOR_NAME> INTO <COLUMN-NAME(S)>;
3. CLOSE <CURSOR_NAME>;
Explicit cursor is one in which cursor name is explicitly assigned to the select statement.
Implicit cursor is used for all other SQL statement.
Subprograms :
(i) procedures:
A function should return a value to the called block whereas a procedure will not return any
value.
Triggers :
Trigger is a stored procedure that is fired when a DML statement is issued against the
associated table.
****************************