Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

[OT] Re: Get unique fields from file

by erix (Prior)
on Jan 08, 2022 at 11:42 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-18 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found