解决方案 »

  1.   

    select unix_timestamp('2011-4-19 12:00:00');
      

  2.   

    我数据库不是时间戳形式,而是datetime形式
      

  3.   

    你不是说要转成时间戳吗?unix_timestamp可以将你的datetime格式转换成时间戳啊 
      

  4.   

    你不是说要转成时间戳吗?unix_timestamp可以将你的datetime格式转换成时间戳啊 
    数据库里不是一条数据,那么多数据怎么转
      

  5.   

    select unix_timestamp(time字段);time字段是数据库中你要转换的时间字段 他会全部都转的
      

  6.   

    select * from table1 where create_time>'2014-03-21 00:00:00'
      

  7.   

    查询可以直接比较
    例如:select * from table where createtime>='2014-01-01 00:00:00' and creattime<'2014-01-31 00:00:00';如果要批量显示可以这样
    select *, unix_timestamp(createtime) as createtime from table;
      

  8.   

    select * from table where createtime>='2014-01-01 00:00:00' and creattime<'2014-01-31 00:00:00';