跳转到主内容
趣航编程网 - 趣学编程,启航技术之路!

读取MYSQL数据库中某个表的第一行和最后一行数据_MySQL

读取第一行select * frommytableorder byIDasc limit 0,1读取最后一行select * from mytable order by ID desclimit 0,1读取前100行select * frommytableorder byIDasc limit 0,100 mytable即是要读取的表名,ID是要排序的对象。

相关文章