|
|
|
новичок
      
участник
Last Login: 15.10.2003 13:33
Сообщ.: 9,
Visits: 100
|
|
из какой (может быть глобальной) переменной можно узнать количество строк обработанных любым (update, select ...) предидущим запросом? ( что-нибудь типа "@@rownum" в "MS SQL" )
|
|
|
|
|
Junior Member
      
участник
Last Login: 22.12.2003 8:11
Сообщ.: 19,
Visits: 210
|
|
В рамках SQL - никак.
Внутри PL/SQL-блока можно использовать атрибуты неявного курсор, конкретно %ROWCOUNT. Подробное описание есть в стандартной документации к ORACLE8 (Oracle8 Database/PL/SQL User's Guide and Reference, Release 8.0/Interaction with Oracle - Using Cursor Attributes - Implicit Cursor Attributes): "Implicit cursor attributes return information about the execution of an INSERT, UPDATE, DELETE, or SELECT INTO statement. The values of the cursor attributes always refer to the most recently executed SQL statement. Before Oracle opens the SQL cursor, the implicit cursor attributes yield NULL..."
|
|
|
|