How to execute multiple sql statements in a single annonymous
block irrespective of the sql statement result?

Answers were Sorted based on User's Feedback



How to execute multiple sql statements in a single annonymous block irrespective of the sql statem..

Answer / krina

we can execute multiple sql statement inside the procedure

Is This Answer Correct ?    0 Yes 0 No

How to execute multiple sql statements in a single annonymous block irrespective of the sql statem..

Answer / gourav joshi

hi,
For eg u want to insert 3 data at a same time so u can use
annonyoums block for eg emp_id,Name,Salary u want to insert
data in a table u can use this annoynomous blck

Begin
Insert into table name values(1, 'gourav',2000);
Insert into table name values(2, 'joshi',6000);
Insert into table name values(3, 'ram',4000);
end;

then execute

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

How many scalar data types are supported in pl/sql?

0 Answers  


In a table only one column how to update rows

5 Answers   Microsoft,


Explian rowid, rownum? What are the psoducolumns we have?

0 Answers  


What are sql indexes?

0 Answers  


Are stored procedures faster than queries?

0 Answers  






Explain the difference between 'between' & 'and' operators in sql

0 Answers  


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

0 Answers  


Hello All, Could any well write a query for the following scenario. Account(table name) No Name Amount 1 ABCD 2000.00 2 DEFG -2000.00 3 GHIJ 3000.50 4 JKLM 4000.00 5 MNOP 6000.00 O/p Should be in this format No Name Credit Debit 1 ABCD 2000.00 0 2 DEFG 0 -2000.00 3 GHIJ 3000.50 4 JKLM 0 -4000.00 5 MNOP 6000.00 o could any one give appropriate query for this Thnks in Advance Suneel Reddy

6 Answers   Target,


Where can I learn sql for free?

0 Answers  


Explain what is a view?

0 Answers  


What is pl sql block in dbms?

0 Answers  


What are the benefits of triggers?

0 Answers  


Categories