postgres
---------------------------------------------------------------------------
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),11)
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))
postgres
tunai_kita
query
selectlpad(right(substring('TK001A2',3,100),11),11,'00000000000');
Result
lpad
000000001A2
Related Posts :
sum balance per month postgreswith a AS (SELECT * FROM (VALUES('Jan',100),('Jan',150),('Jan',50),('Feb',70),('Feb',80)) temp_table(MONTH_NAME,BALANCE)), b as (select *, r… Read More...
concate postgres ato string_aggSELECT * FROM public.group_by_ex
GO
SELECT CITY, STATE, string_agg(member, ', '), SUM(DONATION) FROM group_by_ex
GROUP BY CITY,STATE
… Read More...
command postgres di linuxhttps://ambilgratis.com/tag/melihat-kolom-tabel-postgre/… Read More...
postgres trigger created update datehttps://www.revsys.com/tidbits/automatically-updating-a-timestamp-column-in-postgresql/
https://www.the-art-of-web.com/sql/trigger-update-… Read More...
query postgres kumpulan
https://www.holistics.io/blog/postgresql-queries-usage-monitoring/
https://gist.github.com/rgreenjr/3637525… Read More...
0 Response to "Reading zero postgres, sql server, bss strategic"
Posting Komentar