
oracle
iteye_9557
这个作者很懒,什么都没留下…
展开
-
pl/sql 查询表头
1. select TABLE_NAME, COLUMN_NAME from USER_TAB_COLUMNS where table_name = 'P_RPTDATA_APP_LOG';//P_RPTDATA_APP_LOG是表名 2. select * from dba_tab_columns ; 3. select * from dba_tab_cols;原创 2012-08-29 14:06:02 · 1498 阅读 · 0 评论 -
Oracle计算时间差表达式
Oracle计算时间差表达式 --取第几天的数据。 select * from table where trunc(sysdate)-trunc(cr)=1; select * from table where trunc(sysdate)-trunc(cr)=2; select * from table where trunc(sysdate)-trunc(cr)=8;...原创 2013-08-03 12:45:48 · 94 阅读 · 0 评论