how to get @@error and @@rowcount at the same time? : Sql dba
Answer / Prashant Mishra
To get both @@ERROR and @@ROWCOUNT at the same time, you can use a SELECT statement with the GET DIAGNOSTICS statement. For example: `SELECT @rc := @@ROWCOUNT, @err := @@ERROR FROM dual;`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between db2 and sql?
What is column?
How we get all_group_function's(Sum,avg,count,max and min_value of a column(Sal) Using pl/sql anonymous block, with out using group function's. You shouldn't use more than one select statement in entire the program. Like cursor c is select * from <table_name>; except this you can't use another select statement. You can use no of variables as per requirement.
Table Student has 3 columns,Student_id,Student_Name & Course_Id. Table Course has 2 columns, Course_Id & Course_Name.Write a query to listdown all the Courses and number of student in each course.
What is procedure explain with example?
What is a behavioral trigger?
define sql delete statement ? : Sql dba
What is the difference between alter trigger and drop trigger statements?
what is log shipping? : Sql dba
how a reference cursor works?what all adnvantages are gained with it..specify the situation?
What is the maximum database size for sql express?
What is sequence in sql?
Oracle (3253)
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)