Quantcast
Channel: Recent Writing - Mark Story
Viewing all articles
Browse latest Browse all 126

Improved CASE expression in CakePHP 4.3

$
0
0
CakePHP 4.3 was recently released, and it contains a greatly improved way to build CASE expressions. CASE expressions are great when you want to do conditional aggregation or add computed fields to results. Lets say you wanted to create SQL that mapped integer values to string names, you could use SQL that looks like:

Viewing all articles
Browse latest Browse all 126

Trending Articles