2016年6月2日
摘要: 如 有个表里有字段id,name,.....当name是重复时取其id最大的一条记录 select max(id) id,name from 表 group by name --最小用mini--如果表中还有其他字段要查出,那么select * from 表 where id in(select m 阅读全文
posted @ 2016-06-02 11:13 雪原日暮 阅读(7366) 评论(2) 推荐(1) 编辑
摘要: Controller里写自己需要的Action,参数的名字必须和路由设置的参数名一致,如果参数不一致,传过去为null 阅读全文
posted @ 2016-06-02 10:15 雪原日暮 阅读(366) 评论(0) 推荐(0) 编辑