朱杰兵blog

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

          mysql數值型轉dateTime

          Posted on 2015-01-16 10:23 朱杰兵 閱讀(138) 評論(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  

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


          網站導航:
           
          主站蜘蛛池模板: 新龙县| 青田县| 三穗县| 鄂托克前旗| 临邑县| 郎溪县| 绥江县| 正宁县| 台中市| 鄱阳县| 宜春市| 会宁县| 平乡县| 石林| 土默特左旗| 昂仁县| 革吉县| 抚州市| 无锡市| 逊克县| 吴忠市| 河池市| 北宁市| 额敏县| 盐亭县| 鸡东县| 昭苏县| 姜堰市| 边坝县| 太仓市| 泸溪县| 大城县| 中牟县| 多伦县| 庆城县| 玉屏| 宜兰县| 望城县| 潮州市| 龙里县| 云浮市|