PostgreSQl 시퀀스에 lpad 적용하기

2024. 12. 26. 23:11Data/PostgreSQL

SELECT LPAD(NEXTVAL('my_sequence')::TEXT, 5, '0') AS padded_value;