我需要按日期选择比今天更好的行。 表的列号为LAUNCH_DATE,类型为TIMESTAMP。
我正在尝试执行查询:
SELECT * FROM TABLE1
WHERE LAUNCH_DATE >= to_timestamp('12.02.2016 00:00:00','DD.MM.YYYY HH24:MI:SS')
结果为no rows selected
但是表格中有今天的数据。查询:
SELECT LAUNCH_DATE FROM TABLE1;
给出结果:
10.02.16 16:32:48,000000000
12.02.16 12:35:30,000000000
10.02.16 19:33:37,000000000
12.02.16 12:32:37,000000000
表达式<=
正在运行,但即使今天也显示所有日期。
TO_DATE
也显示没有选定的行
CREATE_TABLE脚本在这里
CREATE TABLE "TEST1"."TABLE1"
( "ROW_ID" NUMBER(*,0) NOT NULL ENABLE,
"CONFIGURATION_ID" NUMBER(*,0),
"BRANCH" VARCHAR2(20 BYTE),
"ENVIRONMENT" VARCHAR2(20 BYTE),
"LAUNCH_DATE" TIMESTAMP (6),
"LINK" VARCHAR2(3000 BYTE),
"CONFIGURATION_TYPE" VARCHAR2(50 BYTE),
CONSTRAINT "TABLE1" PRIMARY KEY ("ROW_ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TEST1" ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "TEST1" ;
COMMENT ON COLUMN "TEST1"."TABLE1"."LAUNCH_DATE" IS 'время начала действия';