substr(1234, 3) (substring the digits)
postgres=# SELECT substr(1234, 3); substr -------- 34 (1 row) postgres=#