5 个解决方案
#1
select * from table1 order by id desc limit 2;
#2
csuymj (csuymj)
'截至2010-08-03 20:47:50 用户结帖率 41.18%
当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html
8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖
'截至2010-08-03 20:47:50 用户结帖率 41.18%
当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html
8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖
#3
update tb
set colname=xx
order by id desc limit 2
#4
update tb set col=xxx
where id in (select id from table1 order by id desc limit 2);
where id in (select id from table1 order by id desc limit 2);
#5
学习中~致敬
#1
select * from table1 order by id desc limit 2;
#2
csuymj (csuymj)
'截至2010-08-03 20:47:50 用户结帖率 41.18%
当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html
8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖
'截至2010-08-03 20:47:50 用户结帖率 41.18%
当您的问题得到解答后请及时结贴.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
http://topic.csdn.net/u/20100428/09/BC9E0908-F250-42A6-8765-B50A82FE186A.html
http://topic.csdn.net/u/20100626/09/f35a4763-4b59-49c3-8061-d48fdbc29561.html
8、如何给分和结贴?
http://community.csdn.net/Help/HelpCenter.htm#结帖
#3
update tb
set colname=xx
order by id desc limit 2
#4
update tb set col=xxx
where id in (select id from table1 order by id desc limit 2);
where id in (select id from table1 order by id desc limit 2);
#5
学习中~致敬