Create a procedure to delete certain records from a table
and display the total number of records deleted in this
process. (Condition for deletion can be of ur choice, for
instance delete all records where eid='')
Answers were Sorted based on User's Feedback
Answer / manas
create or replace procedure proc_name(noofcount out number ) is
Begin
Delete from tes_tabt;
noofcount := sql%rowcount;
End
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / mathivanan
Create or replace procedure delete_rec_cnt is
begin
delete from MY_TABLE;
dbms_output.put_line(sql%rowcount);
end;
| Is This Answer Correct ? | 1 Yes | 0 No |
What is difference between sql and oracle?
How can we implement rollback or commit statement in a trigger?
what are the advantages of primary key over unique+notnull
7 Answers Consultancy, LGS, Oracle,
Is merge a dml statement?
how to create object in plsql
How to get each name only once from an employee table?
how is myisam table stored? : Sql dba
What is microsoft t sql?
give the syntax of grant and revoke commands? : Sql dba
How do I create a memory optimized filegroup?
How many types of literals are available in pl sql?
Is it possible to sort a column using a column alias?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)