LEFT, -1 <== 이거에 대응하는 SUBSTR 사용방법을 말씀하시는 걸까요?
mysql에서 left함수에서 음수값이면 empty string을 출력하네요.
mysql> select left('hello world', -1 ); +--------------------------+ | left('hello world', -1 ) | +--------------------------+ | | +--------------------------+ 1 row in set (0.002 sec)
아래 문서보니 oracle의 substr에서는 length값이 1보다 작으면 null 값을 출력한답니다.
https://docs.oracle.com/database/121/SQLRF/functions196.htm#SQLRF06114
SQL> select substr('hello world', 1, 0) from dual; S -