example (kiss) select: set search path, activate export to csv file
This commit is contained in:
parent
df76b3771f
commit
41a8dd9af8
1 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
set search_path to kiss, public;
|
||||
|
||||
select m2.id id1, m1.id idx, m1.payload->>'community' Gemeinde, m1.item Projekt,
|
||||
m1.payload->>'projectState' Status, m1.payload->>'active' Aktiv,
|
||||
to_char(m2.tstamp, 'DD.MM.YYYY') Datum1,
|
||||
|
|
@ -11,4 +13,4 @@ where m1.domain='kiss' and m1.class='project'
|
|||
and m3.class = m1.class and m3.item = m1.item
|
||||
and m3.payload->>'projectState' = m1.payload->>'projectState')
|
||||
order by m1.payload->>'community', m1.item
|
||||
-- \g projects_10_30_40.csv
|
||||
\g ../data/projects_passiv.csv
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue