函数的使用

sum(nvl(x,0))
where to_char(fodate,'yyyy-mm')=to_char(sysdate,'yyyy-mm')
where Fyear=to_char(sysdate,'yyyy')
where to_char(to_date(fyear,'yyyy'),'yyyy')=to_char(sysdate,'yyyy')
sum(case when x then 1 else 0 end) 别名
innerJoin=join
在某些数据库中,LEFT JOIN 称为 LEFT OUTER JOIN
左外连接写法2(Oracle写法)
         SELECT
           FROM 表名1,表名2
          WHERE 表名1.字段=表名2.字段(+);

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
posted @ 2023-11-10 11:35  你还怕大雨吗  阅读(15)  评论(0)    收藏  举报