-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Yu Yue edited this page Jun 7, 2014
·
3 revisions
Welcome to the dbking wiki!
this is the sample
`
public static void main(String[] args) {
DbKing dbKing = new DbKing();
dbKing.getSequenceNextValue("test");
List<Table> tableList = dbKing.getTableList();
for (Table table : tableList) {
System.out.println(table);
}
SelectSql selectSql = new SelectSql()
.setTableName(DbKing.SEQ_TABLE_NAME)
.setColumns("*")
.setOrderByClause(
new OrderByClause().addOrder(
DbKing.SEQ_NAME_COLUMN_NAME, Direction.ASC));
RowSet rowSet = dbKing.executeSelectSql(selectSql, 3, 2);
for (Row row : rowSet) {
String seqName = row.getString(DbKing.SEQ_NAME_COLUMN_NAME);
System.out.println(seqName);
}
}
`