這個請求按預期工作:ORA-00911錯誤與to_date函數
select dit_in.id data_item_in, dit_out.id data_item_out, alg.id algo_id
from algorithm_run arun
join algorithm_run_of arof on
arof.algorithm_run_id = arun.id
join algorithm_run_input arin on
arin.algorithm_run_id = arun.id
join data_item dit_in on
dit_in.id = arin.data_item_id
join algorithm alg on
alg.id = arof.algorithm_id
join algorithm_run_output arout on
arout.algorithm_run_id = arun.id
join data_item dit_out on
dit_out.id = arout.data_item_id
where alg.id in (182,183,143,162,125,222)
不幸的是,我得到一個錯誤,當我在結尾處加上:
and arun.start_time >= to_date(’01/jun/2011’,’dd/mm/yyyy’)
and arun.start_time < to_date(’01/jul/2011’,’dd/mm/yyyy')
我使用一個Web界面,該錯誤消息是:
警告:oci_execute()[function.oci-執行]:ORA-00911:在/ opt/CSW/apache2的/股無效字符/ htdocs中/ DAE /位點/默認/模塊/ d請注意:oci_fetch_row()[function.oci-fetch-row]:ORA-24374:在獲取或執行之前定義未完成並在/ opt/csw/apache2/share中獲取/htdocs/DAE/sites/default/modules/daedatabase/daedatabase_db.inc上線852
說明「開始失敗」。如果它給出錯誤消息,請發佈錯誤消息。如果它返回錯誤的數據,請描述應返回的數據與返回的數據。 –
用錯誤消息編輯的帖子。 –