---------------------------------------------------------------------------
https://w3resource.com/PostgreSQL/lpad-function.php
SELECT lpad('esource', 13, 'w3r');
lpad --------------- w3rw3resource (1 row)
----------------------------------
SQL SERVER
select len('TK_ST1234')select substring('TK_ST1234',4,100)select right(substring('TK_ST1234',4,100),11) select right('00000000000'+right(substring('TK_ST1234',4,100),11),1 1) select '1002'+right('00000000000'+right(substring('TK_ST1234',4, 100),11),11) select len( '1002'+right('00000000000'+right(substring('TK_ST1234',4, 100),11),11)) postgrestunai_kitaqueryselectlpad(right(substring('TK001A2',3,100),11),11,'00000000000');Resultlpad000000001A2
0 Response to "Reading zero postgres, sql server, bss strategic"
Posting Komentar