我有以下代碼: begin
for i in 1..2 loop
insert into dba_xy.despatch
select desp_id_seq.nextval,
dbms_random.string('U',5),
trunc(dbms_random.value(0000,9999)),
prod_id from dba_xy.produc
我試圖讓內連接在SELECT語句是這樣的: select *
from (select* from bars where rownum <= 10)as tab1
inner join (select * from bars where rownum <= 10)as tab2
on tab1.close=tab2.close
,我得到以下錯誤: ORA-00933 SQL命令不能正確地
Possible Duplicate: SQL Inner join on select statements 我努力使內部連接在這樣一個select語句: select *
from (select* from bars where rownum <= 10)as tab1
inner join (select * from bars where rownum <= 10)as tab2
嗨,我們正在努力執行下面的腳本,我們 是得到錯誤的 ERROR at line 1:
ORA-20000: Unknown Exception Raised: -933 ORA-00933: SQL command not properly
ended
ORA-06512: at line 23
DECLARE
l_cursor INTEGER;
l_output
我打算使用連接但面臨這個問題。我貼我的查詢 select count(*) from table_a inner
join table_b on table_a.number = table_b.number
left outer join table_c on table_a.id = table_c.id
and table_a.number