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. |
Messages In This Thread |
CodeIgniter 4 - How to use CAST - by Luís Andrade - 10-10-2022, 01:08 PM
|