cancel
Showing results for 
Search instead for 
Did you mean: 

how to load csv into a table and make it keyed at the meantime,

charles_upboy
New Contributor
how to load csv into a table and make it keyed at the meantime, thanks
2 REPLIES 2

robert_coen
New Contributor
One way of keying the first column of a table as they're being loading in is to use 
    1!("***";enlist",") 0: `:path/to/example.csv
Alternatively you can use xkey to speicify which column you want keyed
    `column xkey ("***";enlist",") 0: `:path/to/example.csv

thanks, I now use xkey, it's more flexible

在2021年3月18日星期四 UTC+8 上午2:10:56<rober...@aquaq.co.uk> 写道:
One way of keying the first column of a table as they're being loading in is to use 
    1!("***";enlist",") 0: `:path/to/example.csv
Alternatively you can use xkey to speicify which column you want keyed
    `column xkey ("***";enlist",") 0: `:path/to/example.csv