SQL differences
SUBSTR From Position 0 Returns Text on SQLite and PostgreSQL and Nothing on MySQL
Code ported from a language that counts from 0 often ends up with SUBSTR(code, 0, 3). SQLite and PostgreSQL return the first two characters. MySQL and MariaDB return an …