假设我的csv包含a-z共26列,现在c、d和e列不需要加载,用什么办法比较高效?
使用rowNo函数为各列生成列号,赋值给schema表中的col列,然后修改schema表,仅保留表示需要导入的字段的行。代码如下:
```
schema1=extractTextSchema(csv)
update schema1 set col = rowNo(name)
delete from schema1 where name in `c`d`e
schema=extractTextSchema(csv)update schema set col = rowNo(name)delete from schema where name in `c`d`ett=loadText("/home/DolphinDB/Data/stock.csv",,schema);