Welcome Guest, Not a member yet? Register   Sign In
Query Builder : remove an ORDER BY clause from a query ?
#1

Hi,

is there a method to remove an ORDER BY clause to a query that has been previously added to the same query ?

thanks
Reply
#2

I don't believe there is, unless you're willing to reset the whole query ($this->db->reset_query()). You should probably consider delaying the addition of the ORDER BY clause until you can determine whether it should be included, rather than trying to remove it later in the code.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB