select substr('123456789', 3) from table;
결과값: 456789
select substr('123456789', 3, 2) from table;
결과값: 56
뒤에서부터 추출은
select substr('123456789' -2) from table;
결과값: 89
결과값: 456789
select substr('123456789', 3, 2) from table;
결과값: 56
뒤에서부터 추출은
select substr('123456789' -2) from table;
결과값: 89
댓글
댓글 쓰기