摘要:
如 有个表里有字段id,name,.....当name是重复时取其id最大的一条记录 select max(id) id,name from 表 group by name --最小用mini--如果表中还有其他字段要查出,那么select * from 表 where id in(select m 阅读全文
摘要:
Controller里写自己需要的Action,参数的名字必须和路由设置的参数名一致,如果参数不一致,传过去为null 阅读全文