canyon

How to skip comma from csv using double quotes

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting a string in the below format after reading data from a csv file v_lastline = '29218368,8062115," Benedict Canyon Equities, Inc",CLS,,FAX'; I just want to convert it into an array while will contain 6 values, the comma before the , Inc needs to be escaped. Can any one please suggest whats the best way to do it in PL/SQL? 回答1: This is similar to this question , but you have empty elements in your list; and a simple translation of one of the patterns I tried there skips those: var v_lastline varchar2(50); exec :v_lastline :=