create table test (names varchar
dates date
num int
dou double);
create or replace view vi_test as
select * from test;
create or replace synonym aa
for dbusrcard
create or replace produce dd(v_id in employee
as
begin
end
dd;
create or replace function ee(v_id in employee%rowtype) return varchar(
is
var_test varchar
begin
return var_test;
exception when others then
end
create or replace trigger ff
alter delete
on test
for each row
declare
begin
delete from test;
if sql%rowcount <
rais_replaction_err(
end if
end
create or replace trigger gg
alter insert
on test
for each row
declare
begin
if :old
raise_replaction_err(
end if
end
create or replace trigger hh
for update
on test
for each row
declare
begin
if updating then
if :old
reaise_replaction_err(
end if
end if
end
declare
cursor aa is
select names
begin
for bb in aa
loop
if bb
end if
end loop;
end
select names
from test
where test
b
b
select names
from test
where names not in ( select names
from b
where dates > to_date(
select names
from test
where rowid != (select max(rowid)
from test b
where b
b
select * from (select * from test order by dates desc) where rownum <
create sequence row_id
minvalue
maxvalue
start with
increment by
insert into test values(row_id
From:http://tw.wingwit.com/Article/program/Oracle/201311/18291.html