Oracle基本查询

SQL中的null:

    1.包含null的表达式都为null;

        解决空值问题可以利用oracle中的滤空函数:nvl(a,b)-->a:要过滤的列名,b:要过滤的列为空时给他赋的默认值;

        

    2.null永远不等于null;

        可以用select 8 from emp where comm is null;代替comm=null;

        

连接符:||

    相当于java中字符串的‘+’号,把列与列合并在一起;

    

in(set): select * from emp where empno in (10,20);

like: select * from emp where ename like '%ing';





猜你喜欢

转载自blog.csdn.net/xu906722/article/details/79953098