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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Does mysql support pl sql?

811


how to see the create table statement of an existing table? : Sql dba

732


What is a table in a database?

782


What is left inner join in sql?

722


What are sql objects?

736






Are pl sql variables case sensitive?

769


How can you fetch common records from two tables?

773


How show all rows in sql?

797


What is sql server and ase?

711


Can I call a procedure inside a function?

735


What is right join sql?

711


What are the advantages of pl sql?

832


What can I use instead of union in sql?

706


explain mysql aggregate functions. : Sql dba

724


What is secondary key?

669