朱杰兵blog

          jonhney'blog
          posts - 140, comments - 1, trackbacks - 0, articles - 0

          mysql數值型轉dateTime

          Posted on 2015-01-16 10:23 朱杰兵 閱讀(139) 評論(0)  編輯  收藏
          int型轉dateTime              select from_unixtime(1210003200) datetime, unix_timestamp(from_unixtime(1210003200)) timestamp;
          bigint型轉dateTime          select from_unixtime(createTime/1000),from_unixtime(waitLoadTime/1000) from ORDER_CAR where orderId=1407


          --入庫工單 SELECT '入庫碼單' TYPE, COUNT(1) sumNum, SUM(a.weight) sumWeight,from_unixtime(b.lastOperateTime/1000,'%Y-%m-%d') lastOperateTime, b.lastOperator,b.warehouseName, a.breedName FROM WAREHOUSE_IN_GOODS_LIST a LEFT JOIN WAREHOUSE_IN_INFO b ON a.inId=b.id --WHERE b.isCancel = ? AND b.lastOperateTime >= ? AND b.lastOperateTime <= ? AND b.lastOperator IN (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) GROUP BY b.warehouseName,b.lastOperateTime,b.lastOperatorId,a.breedId ORDER BY b.lastOperateTime DESC  

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 东莞市| 册亨县| 香港| 怀集县| 长沙市| 巴林右旗| 定襄县| 福泉市| 霍林郭勒市| 仁布县| 永清县| 阿拉善右旗| 巴南区| 汉源县| 长子县| 大城县| 若羌县| 泸西县| 广元市| 新乡县| 襄城县| 左权县| 河间市| 辽宁省| 新平| 中方县| 上高县| 武功县| 钟祥市| 福安市| 亚东县| 临猗县| 鱼台县| 和平区| 东阿县| 治县。| 桓台县| 南漳县| 金乡县| 虞城县| 乐平市|