求助Win4DEAP的数据导入问题

求助Win4DEAP的数据导入问题,第1张

您在Access的“工具”菜单选择“数据库使用工具”选择“升迁向导”。然后按照提示即可。您上面的方法有点问题。出现DTS导入\导出向导第二个界面,然后在数据源中选择Microsoft Access后出现选择文件名。不要输入用户名和密码。还有您要先建立“用户/系统DSN”才可以。

with temp as

(

select name as text from a

)

select substr(text,instr(text,',',1,rn)+1,instr(text,',',1,rn+1)-instr(text,',',1,rn)-1) text from

(

select ','||t1.text||',' text,t2.rn from

(select text,length(text)-length(replace(text,',',''))+1 rn from temp) t1,

(select rownum rn from all_objects where rownum <= (select max(length(text)-length(replace(text,',',''))+1) rn from temp)) t2

where t1.rn >= t2.rn order by text,rn

)

用这种方法可以处理name这一列,如果你想ID、NAME都先显示的话,就要写成一个函数来调用了。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/sjk/6723732.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-03-27
下一篇2023-03-27

发表评论

登录后才能评论

评论列表(0条)

    保存