ORACLE里面自带的参数

来源:互联网 发布:快速学会唱歌 ktv 知乎 编辑:程序博客网 时间:2024/05/02 00:53

最近学习Oracle,为了方便使用数据库,需要了解一些它自带的参数。

总结如下:

rownum  行数         select * from user where rownum<4;

user_tables  用户所有的表             先desc user_tables      再 select * from user_tables where rownum<4;

all_tables  所有的表                        先desc all_tables      再 select * from all_tables where rownum<4;

tab  当前数据库所有的表     先desc tab      再 select * from tab where rownum<4;

sysdate                   select sysdate from dual;


日期函数:

last_day()               select last_day(sysdate) from dual;

next_day() select next_day(sysdate,'星期六') from dual;

Months_between()     

Add_months()            

0 0
原创粉丝点击