CodeIgniter 4 - How to use CAST |
Hi, guys!
Simple example to use CAST in CI4 when we need order strings Considering Query builder. ... ->orderBy('CAST(table_name AS SIGNED),'ASC') use SIGNED/UNSIGNED, ASC/DESC according to your needs. |
Welcome Guest, Not a member yet? Register Sign In |