MySql, combining date and time column into a time stamp

前端 未结 6 1350
孤城傲影
孤城傲影 2020-12-14 14:32

I am guessing this is relatively simple to do, but I am unsure of the syntax. I have date and time columns that I want to combine to a timestamp column. how would I query th

6条回答
  •  误落风尘
    2020-12-14 15:12

    SELECT * FROM tablename WHERE TIMESTAMP(datecol, timecol) > '2015-01-01 12:00:00';
    

提交回复
热议问题