CONCAT inside a select function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CONCAT inside a select function (/showthread.php?tid=61169) |
CONCAT inside a select function - El Forum - 10-04-2014 [eluser]webmarkcompt[/eluser] Hello everyone It's possible to concat two values inside this select function? Such as categories.name as cname and subcategories.name as subcategory ? Code: function getdatatableajaxcost() The idea is retrieve both values on the same column inside a jquery datatable. Any sugestion? CONCAT inside a select function - El Forum - 10-07-2014 [eluser]larsonator[/eluser] Should be, just put it in your select statement. The Active record essentially a query builder, try something like this: Code: function getdatatableajaxcost() CONCAT inside a select function - El Forum - 10-09-2014 [eluser]webmarkcompt[/eluser] [quote author="larsonator" date="1412721324"]Should be, just put it in your select statement. The Active record essentially a query builder, try something like this: Code: function getdatatableajaxcost() It worked like a charm! A big thanks! |