ORACLE

export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2

export ORACLE_SID=helowin

 export PATH=$ORACLE_HOME/bin:$PATH

create user test identified by test11;

grant connect,resource,dba to test;

select t.table_name,a.comments,t.num_rows from user_tables t
left join user_tab_comments a on a.table_name = t.TABLE_NAME  order by t.NUM_ROWS desc

你可能感兴趣的:(oracle,数据库,java)