讨论数量: 0
  
    
      
        
        发起讨论
      
        
    
      
      只看当前版本
    
        
  
     SQL 代码规范
    /
    
  
  
                
再一次,明确好于隐式:
-- Good
select
    id,
    email,
    timestamp_trunc(created_at, month) as signup_month
from users
-- Bad
select
    id,
    email,
    timestamp_trunc(created_at, month) signup_month
from users本文章首发在 LearnKu.com 网站上。
 
        
         请登录
 请登录