|
楼主 |
发表于 2016-1-22 15:11:17
|
显示全部楼层
本帖最后由 tlkj 于 2016-1-22 15:12 编辑
红色部分是between xx and xx要想能把页面传过来的值赋值进来我应该怎么写?
public static Table testTwo(String name,Integer age,String sex,java.sql.Date born,String grade,Integer id){
String mssql="select * from Student s where s.born between s.born and s.born";
HashMap<String , String> sqlMap=new HashMap<String, String>();
sqlMap.put(SQL.DEFAULT_DB_NAME, mssql);
sqlMap.put(DatabaseProduct.MSSQL.name(), mssql);
sqlMap.put(DatabaseProduct.MSSQL.name(), mssql);
return SQL.select(sqlMap, null, "/myTest/testTwo/data");
}
} |
|