-1

このリクエストは意図したとおりに機能します。

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-execute]: ORA-00911: /opt/csw/apache2/share/htdocs/DAE/sites/default/modules/data_repository/data_repository.inc の 117 行目に無効な文字があります。

警告: oci_fetch_row() [function.oci-fetch-row]: ORA-24374: /opt/csw/apache2/share/htdocs/DAE/sites/default/modules/daedatabase/ でフェッチまたは実行およびフェッチの前に定義が行われていません852行目のdaedatabase_db.inc。

4

3 に答える 3

5

これを試して:

 and arun.start_time >= to_date(’01/06/2011’,’dd/mm/yyyy’) 
 and arun.start_time < to_date(’01/07/2011’,’dd/mm/yyyy’) 

また

 and arun.start_time >= to_date(’01/jun/2011’,’dd/mon/yyyy’) 
 and arun.start_time < to_date(’01/jul/2011’,’dd/mon/yyyy’) 

問題は、日付文字列 (01/jun/2011) が書式指定子 (dd/mm/yyyy) と一致しないことです。上記の例が示すように、日付または指定子のいずれかを変更する必要があります。

于 2011-10-23T02:51:24.463 に答える
5
and arun.start_time < to_date(’01/jul/2011’,’dd/mm/yyyy') 

最後のビットの周りに 2 つの異なるタイプの引用符が表示されますか? 一重引用符と逆引用符?それとも単に切り貼りや翻訳の問題ですか?

于 2011-10-23T13:47:07.670 に答える
3
于 2011-10-23T15:33:00.177 に答える