adspace
how to get @@error and @@rowcount at the same time? : Sql dba
Answer Posted / 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 |
Post New Answer View All Answers
Is inner join faster than left join?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
what is dbms? : Sql dba
What is the current version of postgresql?
Does group by remove duplicates?
What is the best sql course?
Is primary key always clustered index?
how to use regular expression in pattern match conditions? : Sql dba
What is your daily office routine?
Do we need to rebuild index after truncate?
what are aggregate and scalar functions? : Sql dba
what are the advantages of sql ? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
Can we use distinct and group by together?
How do I remove duplicates in two columns?