select column_name from (select column_name, rownum rn from user_tab_cols where table_name = 'AAA') where rn = 2;取的是AAA表,如果是所有表要写过程。遍历tabs 把表名传给 user_tab_cols 中的 table_name即可。
select a from table
晕倒
晕。select password from sys_user 不就可以了吗?