2.sql="select*from table"
con.prepareCall("SELECT*FROM(SELECT A.*,rownum r FROM("+sql+")A WHERE rownum<=
"+intPage*intPageSize+")B WHERE r>"+(intPage-1)
*intPageSize);
今天想查询一下Oracle数据库下所有的表名或某个用户下的所有表,半天没想起来.还是在网上找到了答案.
select table_name from all_tables;//所有的表明
select table_name from user_all_tables;//用户的所有的表
一下是转贴的sql语句的帖子.
select*from user_objects;//查询所有的表
select*from dba_tables;//查询所有的表
select*from all_tables;//查询所有的表
select*from user_users//查出一个用户
select*from all_users//查询所有用户
select*from dba_users//查询所有用户
select name,dbid from v$database;//查询数据库名和它的ID
select*from http://www.doczj.com/doc/bb51f2ea77a20029bd64783e0912a21615797f58.htmler_tab_columns;//查询表名,并显示列名
describe表名//查询表结构
select*from http://www.doczj.com/doc/bb51f2ea77a20029bd64783e0912a21615797f58.htmler_tab_columns where table_name=表名//查询指定表名的字段
2:查询数据库参数