Welcome Guest, Not a member yet? Register   Sign In
need help with sql query using Active Record plz
#4

[eluser]mineass[/eluser]
[quote author="waldmeister" date="1265584630"]
Code:
$this->db->select('tariffdesc');
$this->db->select('SUM(duration) AS duration', FALSE);
$this->db->select('COUNT(id_call) AS id_call', FALSE);
$this->db->from('calls');
$this->db->where('caller_id', 'moh');
$this->db->group_by('tariffdesc');

have fun Smile[/quote]

if u use false in select once, AR will not escape any of other lines in this query


Messages In This Thread
need help with sql query using Active Record plz - by El Forum - 02-07-2010, 10:35 AM
need help with sql query using Active Record plz - by El Forum - 02-07-2010, 11:17 AM
need help with sql query using Active Record plz - by El Forum - 02-07-2010, 11:56 AM
need help with sql query using Active Record plz - by El Forum - 06-29-2011, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB