必须用 # 代替 ' 比如 select * from mytable where myDate>'2008-5-8' 这样不行 得写成 select * from mytable where myDate>#2008-5-8#