$select_query="select * from student limit $limit_record";
or you can also write this query like below
$select_query="select * from student limit 2";
Its up to you how much limit you apply over sql query. Normally limit apply on query during development of Pagination Module.
So this is the way to apply limit on mysql query to limit the records.