+ -
当前位置:首页 → 问答吧 → 请教:sybase ase 怎么导入导出带双引号的csv数据?

请教:sybase ase 怎么导入导出带双引号的csv数据?

时间:2011-07-26

来源:互联网

文件tmp.dat
cat tmp.dat
1,"nihao"
2,"wohao"

表test(id int,name varchar(9))
select * from test
go
id          name      
----------- ---------
           1 nihao     
           2 wohao     

问题:
1,怎么样才能把tmp.dat的数据倒入到表test中,成如上图中表的形式.
2,怎么样才能把test表中的数据导出到文件tmp.dat中成如上图中的形式问题补充:

提示:本问题的重点在于双引号!  表中的数据要不包含双引号,文件中的字符型数据要包含双引号!

作者: hfvbc   发布时间: 2011-07-26

提示:字符型数据中可能包含换行符

作者: hfvbc   发布时间: 2011-07-27

热门下载

更多