0
我必须在使用Ebean的MySQL数据库中运行查询(SELECT/INSERT)。 有我在爪哇发现两个选项 - 游戏框架在Play框架中使用Ebean映射
1. Connection conn=DB.getConnection();
Statement st=conn.createStatement();
ResultSet rs=st.executeQuery("select * from table1");
使用Ebean
2.Connection conn=DB.getConnection();
SqlUpdate down=Ebean.createSqlUpdate("insert into table1 (codefile,ADT,AD,TAG) VALUES (7555,'Ebean',0,0)");
down.execute();
但我想在MySQL数据库地图(插入完整阵列),而不是使用上面的查询。
非常感谢@biesior知道您会救我.. :) – Incpetor