How to limit the mysql data in codeigniter


                        $this->db->select('*');
$this->db->limit(5);
$this->db->from("table_name");