请问各位大神一下,nuzt中如何接收执行sql以后的返回结果? 还有就是能否给我讲解一下nutz有关执行sql语句的详细过程。多谢了,多谢了,多谢了。
public void quarryTableName()
{
Dao b = new NutDao();
Sql sql1 = Sqls.create("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'ofbiz'");
Sql sql2 = Sqls.create("select COLUMN_NAME from information_schema.COLUMNS where table_name = @tableName and table_schema = 'ofbiz'");
Entity<ImportTable> tableNames =b.getEntity(ImportTable.class);
sql1.setEntity(tableNames);
sql1.setCallback(Sqls.callback.entities());
b.execute(sql1);
List a = sql1.getList(ImportTable.class);
}