本人要查询某个时间段的数据
表的结构如下:时间点 数值1
时间点是字符型
2010-02-25 10:23:25.967 23.432
2010-02-25 10:23:26.967 23.439
2010-02-25 10:23:27.967 23.482
2010-02-25 10:23:28.967 23.432
2010-02-25 10:23:29.967 23.332
2010-02-25 10:23:30.967 23.432
2010-02-25 10:23:31.967 23.400 select cast(采集的时间点 as datetime) AS ASDF,数值from 测试表2010年02月25日where 2010-02-05 10:23:25 967 <cast(采集的时间点 as datetime)报错 ?
表的结构如下:时间点 数值1
时间点是字符型
2010-02-25 10:23:25.967 23.432
2010-02-25 10:23:26.967 23.439
2010-02-25 10:23:27.967 23.482
2010-02-25 10:23:28.967 23.432
2010-02-25 10:23:29.967 23.332
2010-02-25 10:23:30.967 23.432
2010-02-25 10:23:31.967 23.400 select cast(采集的时间点 as datetime) AS ASDF,数值from 测试表2010年02月25日where 2010-02-05 10:23:25 967 <cast(采集的时间点 as datetime)报错 ?
where 采集的时间点>'2010-02-05 10:23:25 967'
from table
where cast(时间点 as datetime)>'2010-02-05 10:23:25 967'