1. 获取表
当前用户: select * from tab;
数据库所有表: select * from all_tables2. oracle 的 rownum 和 top 相似
select * from tab where rownum <=2; (获取前两个记录)3. unicode -> ascii
substring -> substr
当前用户: select * from tab;
数据库所有表: select * from all_tables2. oracle 的 rownum 和 top 相似
select * from tab where rownum <=2; (获取前两个记录)3. unicode -> ascii
substring -> substr
from (select rownum r,a.* from user_tables a)
where r = 2
还有。。如何获得abc表里边第5行的一个叫bcd字段的第6个字母的值呢?
select
B.COLUMN_NAME ,
ASCII(SUBSTR(B.COLUMN_NAME,8,1))
from
all_tab_columns b
where
b.table_name='ABC'