Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14114

QB Addition and subtraction in SELECT

$
0
0
It would be nice to make some totally custom select string.
Now we can't make simply operations such addition or subtraction.

PHP Code:
->select($this->first_table .'.value - '$this->second_table .'.value AS difference'FALSE

it's produce:

Code:
first_table.prefix_value - second_table.value  AS difference

It's adding database prefix to column name rather than table name. It would be ok if I could simply turn off prefixing (i can add it manually by prefix method). Maybe third argument?

Viewing all articles
Browse latest Browse all 14114