摘要: -- -- Table structure for `TabName` -- DROP TABLE IF EXISTS `TabName`; CREATE TABLE `TabName` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(2 阅读全文
posted @ 2016-04-20 17:08 Bigben 阅读(682) 评论(0) 推荐(0) 编辑
摘要: 假设有test表,下图为表机构和数据,score表示积分。现在要查询积分排名为第几的id?? 查询语句 [sql] view plain copy select id,score,(@rowno:=@rowno+1) as rowno from test,(select (@rowno:=0)) b 阅读全文
posted @ 2016-04-20 15:27 Bigben 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/wangshfa/article/details/27323297 http://blog.csdn.net/wangshfa/article/details/27323297 1 public interface BatchDao<T> { 2 publi 阅读全文
posted @ 2016-04-20 10:32 Bigben 阅读(6631) 评论(0) 推荐(0) 编辑