select dm.name
from data_models dm
join data_model_values qc
on dm.id = qc.model_id
join data_model_values de
on dm.id = de.model_id
join data_model_values coa
on dm.id = coa.model_id
where qc.attr = 'Query complexity'
and qc.val = 'Hideously mind-boggling'
and de.attr = 'Datatype (more...)
insert into joyous_memories
select making_vast_improvements
from that_horrible_query
union all
select designing_data_models
from scalable_applications
union all
select heart_warming_smile
from your_newborn_child;
create table fractional_digits_disappear (
without_warning_when_put_in_an integer
);
insert into fractional_digits_disappear (
without_warning_when_put_in_an
) values (
3.141592
);
select *
from fractional_digits_disappear;
WITHOUT_WARNING_WHEN_PUT_IN_AN
------------------------------
3
select count(*)
from babies
where crying = any (
select understanding
from parents
);
COUNT(*)
--------
0
drop procedure is_not_really_gone_but;
select object_name || ' ' || object_type
as "Continues on"
from user_objects_ae
where object_name =
'IS_NOT_REALLY_GONE_BUT';
Continues on
-----------------------------------
IS_NOT_REALLY_GONE_BUT NON-EXISTENT
create table is_not_really_gone_but (
until_replaced number,
by_a_non_editioned_object varchar2(1)
default 'Y',
which_we_then_drop varchar2(1)
);
drop table is_not_really_gone_but;
select (more...)
delete
from roads
where cars in ('my', 'way')
and desire_to_get_home_quickly = 'huge';
1,492 rows deleted
create sequence ora
start with -1002 minvalue -1002;
begin
for commits in (
select loops
from queries
where we = 'specify'
for update
) loop
dbms_output.put_line(
'Causes an ' || sqlerrm(ora.nextval));
commit;
end loop;
end;
/
Error report:
ORA-01002: fetch out of sequence
grant read on
directory concepts_guide
to everyone;
But now you’ve got it, head here to read it!
create global temporary table
contains_data_that_is (
only_visible_to_one_session
varchar2(1) default 'Y',
and_by
varchar2(50) default 'removed on commit',
unless_you_state
integer
) on commit preserve rows;
create edition allows_one_plsql_object
as child of itself_with_differing_code;
comment on edition allows_one_plsql_object is
'so you can release changes with no dowmtime!';