Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

[OT] Re: Get unique fields from file

by erix (Prior)
on Jan 08, 2022 at 11:42 UTC ( #11140266=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # bash 
    
    ...
    server fs options(delimiter'$sep',format'csv',header'TRUE',filename'$f
    +ile');
    SQL_PERL
    
  2. or download this
    create server if not exists fs foreign data wrapper file_fdw;
    
    ...
     , head3 text
    )
    server fs options(delimiter'|',format'csv',header'TRUE',filename'/tmp/
    +flatfile.dat');
    
  3. or download this
    
    (select 'head1' "heads", array_agg(distinct head1 order by head1) "val
    +ues" from flattable) union all 
    ...
    --  head3 | {val3,val5}
    -- (3 rows)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140266]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-08-18 23:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?