Stai cercando la funzione trim() . Va bene, ecco il tuo esempio SELECT TRIM(LEADING '0' FROM myfield) FROM table