随笔分类 - Oracle
摘要:1.oracle中NVL的含义: 如果oracle第一个参数为空那么显示第二个参数的值,如果第一个参数的值不为空,则显示第一个参数本来的值。 2.Oracle中in和exists的区别: 1).select * from A where id in(select id from B);in适合B表比
阅读全文
摘要:1.查询用户下的所有表 查询用户下的所有表 select distinct table_name from user_tab_columns; 2.搜索出前N条记录 Select a.*,rownum from (select * from cardkind order by cardkind )
阅读全文