我知道下面的代码给了我SQL数据库中表的数量(我使用SQLite),但是我如何获得一个表的“顺序”,以便我可以创建一个for循环来扫描所有这些表呢?
String numtables = "String sql = “SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'database’ ”;
pst = con.prepareStatement(numtables);
ResultSet numt = pst.executeQuery(numtables);
int num = ((Number) rs1.getObject(1)).intValue();
https://stackoverflow.com/questions/51509200
复制相似问题