刘韬 %!s(int64=2) %!d(string=hai) anos
pai
achega
8b739fc6f4
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      DataFusion/src/com/zskk/control/ViewController.java

+ 14 - 0
DataFusion/src/com/zskk/control/ViewController.java

@@ -56,6 +56,20 @@ public class ViewController extends Controller {
 		
 	}
 	
+	/**
+	 * 在被连接数据库执行sql语句
+	 */
+	public void executeSqlprint() {
+		try {
+			List<Record> d = Db.use("print").find(this.getPara("sqlstr"));
+			this.renderJson(d);
+		} catch (Exception e) {
+			// TODO: handle exception
+			this.renderText(e.toString());
+		}
+		
+	}
+	
 	/**
 	 * 在被连接数据库执行sql语句
 	 */