急!!!!!!请问怎么页面读数据库的id记录时,老是将id最小的记录读出来(老记录),就是不能按最新记录

sql语句后面加上"order by id desc"
---------------------------------------------------------------

你应该rs.movefirst,就可以得到新记录
---------------------------------------------------------------

select * from tablename order by id desc

Published At
Categories with Web编程
Tagged with
comments powered by Disqus