gdjlc

培养良好的习惯,每天一点一滴的进步,终将会有收获。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  364 随笔 :: 3 文章 :: 49 评论 :: 132万 阅读

04 2016 档案

摘要:--case when用法 select case when cast(strftime('%H','now','localtime') as int) >= 6 and cast(strftime('%H','now','localtime') as int) <=12 then '上午' when cast(strftime('%H','now','localtime') as int) >12 and cast(strftime('%H','now','localtime') as int) <=18 then '下午' when cast(strftime('%H','now','localtime') as int) >18 and cast(strftime('%H','now','localtime') as int) <=23 then '晚上' else '凌晨' end; 阅读全文
posted @ 2016-04-27 15:14 gdjlc 阅读(2364) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示