1

私は次のクエリを持っています:

select * from player_source 
where source is not null

その結果、

ID      create_dtime
001     2012-10-16 16:13:27
002     2012-12-10 16:13:27

等々...

create_dtimeが2012年12月3日以上、2012年12月9日以下の結果のみを返すようにクエリをフィルタリングしたいと思います。

使ってみました

select * from player_source 
where source is not null
and Create_Dtime >= To_Date('2012-Dec-03','yyyy-mon-dd')
and Create_Dtime <= To_Date('2012-Dec-09','yyyy-mon-dd')

Oracleのルーツを使用していますが、機能していないようです。何かご意見は?

4

3 に答える 3

2

クエリ:

select * 
from player_source 
where source is not null
and Create_Dtime >= '2012-10-03'
and Create_Dtime <= '2012-10-09'
于 2012-12-11T21:09:50.557 に答える
0

これを試して

 select * 
 from player_source 
 where source is not null
 and Create_Dtime >= '2012-Dec-03'
 and Create_Dtime <= '2012-Dec-09'
于 2012-12-11T21:10:29.203 に答える
0

構文は次のとおりです。

select * from player_source 
where source is not null
and Create_Dtime > '2012-12-03'
and Create_Dtime <= '2012-12-09'

または、より簡潔に:

select * from player_source 
where source is not null
and Create_Dtime > '2012-12-03' BETWEEN
and '2012-12-09'
于 2012-12-11T21:10:38.940 に答える