0
点赞
收藏
分享

微信扫一扫

没有IF函数, 可以用Case When代替

日月同辉9908 2024-09-09 阅读 24

例如

 

if(activity_type="start", -1*timestamp, timestamp)

 

CASE     
   when activity_type="start" then    -1*timestamp     
   when activity_type="end"   then      timestamp 
end

 

举报

相关推荐

0 条评论