Académique Documents
Professionnel Documents
Culture Documents
Chris Saxon
Oracle Developer Advocate for SQL
blogs.oracle.com/sql
@chrisrsaxon & @SQLDaily
youtube.com/c/TheMagicOfSQL
– Phil Karlton
select table_name
into tab
from user_tables
where ...
...lots_and_lots,of_indexes,...(42)
Last name
FIRST_NAME LAST_NAME
Chris Saxon
Must be EXTENDED!
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
create or replace package customer_pkg as
/* get_customers_upper is deprecated. Do not use or
I'll come for you with a rusty spoon! */
cursor get_customers_upper (p_name varchar2) is
select * from customers
where upper(customer_name) = upper(p_name);
no rows selected
01-JAN-0001
p_XML p_default
Materialized Views
Search index
... and more JSON goodies
GeoJSON
In-Memory support
JSON Data Guide
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
Also in 12.1.0.2...
faster &
clse enogh
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
1,723
select count(*)
from user_source
where upper(text)
like '%COUNT%DISTINCT%';
Aprox. Quries
Enhncmnts
alter session set approx_for_count_distinct = true;
approx_for_aggregation
approx_for_percentile
Huh?
...but have we
tested everything?
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
PL/SQL Code
Coverage
begin
if this or that then
do_this();
else
do_that();
end if;
end;
your_test_procedures;
dbms_plsql_code_coverage.stop_coverage;
end;
/
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
select u.owner, u.name, u.type,
round((sum(b.covered)*100)/count(*))
as pct_covered
from dbmspcc_runs r
join dbmspcc_units u
on r.run_id = u.run_id
join dbmspcc_blocks b
on b.object_id = u.object_id
and b.run_id = u.run_id
where r.run_comment = 'TEST1'
group by u.owner, u.name, u.type
#MakeDataGreatAgain
Copyright © 2017, Oracle and/or its affiliates. All rights reserved. |
Ryan McGuire / Gratisography
Safe Harbor Statement
The preceding is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.