-1
下面的代碼塊拋出錯誤使用VARRAY ..如何PLSQL
DECLARE
TYPE dbadaptor IS VARRAY (9) OF VARCHAR2(20);
min_date DATE;
max_date DATE;
db dbadaptor := dbadaptor('wsf_ds_11765_c', 'wsf_ds_11750_c',
'wsf_ds_11756_c', 'wsf_ds_11759_c',
'wsf_ds_11706_c', 'wsf_ds_11709_c',
'wsf_ds_11751_c', 'wsf_ds_11708_c',
'wsf_ds_11762_c');
BEGIN
FOR i IN 1..9 LOOP
SELECT
from_sf_date(max(start_time)),
from_sf_date(min(start_time))
INTO max_date, min_date
FROM db(i);
END LOOP;
END;
我得到一個錯誤在第8行」 PL/SQL:ORA-00933:SQL命令不能正確地結束」,這是因爲db(i)...。 能否請你幫我出