LEN('') vs LEN(NULL) vs LEN(' ') Are DIFFERENT?!

LEN of empty string, NULL, and space are all different! Empty = 0, NULL = NULL, Space = 1. This breaks string length logic! Watch!

#sql #sqltricks #database #sqltutorial #len #stringlength #sqlquiz #codingchallenge #sqlshorts #sqlbugs #stringfunctions #sqlwtf

https://www.youtube.com/watch?v=mvXKvslW08w

LEN vs LENNULL vs LEN Are DIFFERENT?! #sqltutorial

YouTube

TRIM with Different Characters?!

TRIM can remove ANY character! Not just spaces. LEADING, TRAILING, or BOTH. This flexible trimming will clean your data in unexpected ways!

#sql #sqltricks #trim #leading #trailing #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringfunctions #advancedsql

https://www.youtube.com/watch?v=MRgaM0p-Obg

TRIM with Different Characters?! #sqlquiz

YouTube

PHP strcmp vs == Comparison

Stop scrolling! PHP strcmp() and == compare differently. See '10' vs '10.0'. The difference will shock you!

#php #phptricks #codingtips #programmingtutorial #phpstrcmp #stringcomparison #phpstrings #phpquiz #codingchallenge #phpshorts #stringfunctions #phpcomparison

https://www.youtube.com/watch?v=JNLjMPqfBZQ

PHP strcmp vs Comparison #phpstrcmp

YouTube

String Collation Changes Comparison?!

Collation CHANGES string comparison! Case-insensitive collation makes 'A' = 'a'. This hidden setting will break your WHERE clauses!

#sql #sqltricks #collation #stringcomparison #casesensitivity #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringfunctions #advancedsql

https://www.youtube.com/watch?v=XH-5hOj56ec

String Collation Changes Comparison?! #sqlwtf

YouTube

String Functions With NULL Return NULL?!

LEN, SUBSTRING, and other string functions with NULL return NULL, not error! This breaks string processing logic! Watch the reveal!

#sql #sqltricks #database #sqltutorial #stringfunctions #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #stringoperations #sqlwtf

https://www.youtube.com/watch?v=FXql2wP0kmg

String Functions With NULL Return NULL?! #sqlshorts

YouTube