Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

distinct() Query in Codeigniter

by
Category:codeigniter
codeigniter mysql
distinct() Query in Codeigniter

This tutorial shows you how to write distinct query in codeigniter. This method is identical to the Adds the “DISTINCT” keyword to a query.

Let’s create a distinct method in codeigniter

$this->db->distinct();
$this->db->get('table'); 
// Produces: SELECT DISTINCT * FROM table

0 Comments


Html code work in comment box


Related Post