MySQL如何只获得查询结果的前n条数据

select image_url from person_comments_image where comments_id='com_001'  limit 0,3;

 这里的limit 0,3表示的意思是获取数据的集合下标为0,1,2

猜你喜欢

转载自www.cnblogs.com/mirage-mc/p/12615104.html