Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 derby 数据库表的详细信息提取到 Java 程序中。例如没有。特定表中的列。我尝试了数据库元数据,但没有用。请帮我?
提前致谢!
尝试
ResultSet rs = stmt.executeQuery("select * from t1 where 1<>1"); ResultSetMetaData md = rs.getMetaData(); for(int i = 1; i <= md.getColumnCount(); i++) { md.getColumnName(i); md.getColumnType(i); ...
有关详细信息,请参阅 ResultSetMetaData API