Академический Документы
Профессиональный Документы
Культура Документы
SQL_TEXT
-------------------------------------------------------------------------------
select * from clientes where rownum<5
select * from clientes where nif='13215423J'
select * from clientes where nif='13215423-J'
select * from clientes where nif='17441167-R'
select * from clientes where nif='52347055-J'
select * from clientes where nif='55971122-J'
select sql_text from v$sqlarea where sql_text like '%clientes%'
SQL_TEXT
-----------------------------------------------------------------------------------
-
select * from clientes where nif=:nif
select * from clientes where rownum<5
select * from clientes where nif='13215423J'
select * from clientes where nif='13215423-J'
select * from clientes where nif='17441167-R'
select * from clientes where nif='52347055-J'
select * from clientes where nif='55971122-J'
select nif from vuelos.clientes where rownum<10
select sql_text from v$sqlarea where sql_text like '%clientes%'
Tabla creada.
Tabla modificada.
42 filas actualizadas.
SQL> commit;
Confirmaci�n terminada.
�ndice creado.
SQL> begin
2 dbms_stats.gather_table_stats(
3 ownname=>'VUELOS',
4 tabname=>'RESERVAS_ESTADO',
5 method_opt=>'for all columns size 75',
6 cascade=>true);
7 end;
8 /
Explicado.
SQL> @?/rdbms/admin/utlxpls
PLAN_TABLE_OUTPUT
-----------------------------------------------------------------------------------
--
-----------------------------------------------------------------------------------
--
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
|
-----------------------------------------------------------------------------------
--
| 0 | SELECT STATEMENT | | 171K| 8184K| 361 (2)| 00:00:05
|
|* 1 | TABLE ACCESS FULL| RESERVAS_ESTADO | 171K| 8184K| 361 (2)| 00:00:05
|
-----------------------------------------------------------------------------------
--
1 - filter("ESTADO"='PAGADO')
Explicado.
SQL> @?/rdbms/admin/utlxpls
PLAN_TABLE_OUTPUT
-----------------------------------------------------------------------------------
-----
-----------------------------------------------------------------------------------
-----
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
|
-----------------------------------------------------------------------------------
-----
| 0 | SELECT STATEMENT | | 62 | 3038 | 4 (0)|
00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| RESERVAS_ESTADO |62 | 3038 | 4 (0)|
00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_RESERVAS_ESTADO | 62 | | 3 (0)|
00:00:01 |
-----------------------------------------------------------------------------------
-----
2 - access("ESTADO"='IMPAGADO')