I want to select a field from table and substring it.
For example:
VAN1031 --> 1031
I tried this, but is improper syntax:
SELECT substring(R.regnumber FROM 4) FROM registration AS R;
and if you want to take the part as an integer not a string you can write:
SELECT CAST(substring(R.regnumber FROM 4) AS UNSIGNED) FROM registration as R;