csv

how to export data from around 300 tables in ORACLE DB to csv or txt files

廉价感情. 提交于 2021-02-08 04:48:03
问题 Is there any possibility to export data from around 300 tables within single schema with millions of records to CSV or TXT using any PL/SQL procedure? What do you propose, which is fastest way to do it? For the moment I do not need to import these exported files to any other schema... I tried with Toad manually exporting table by table... 回答1: you can try following steps. write a loop to get the table names use cursors to fetch the data from each table use SYS.UTL_FILE utilities to write the

D3 Loading in CSV file then using only specific columns

不打扰是莪最后的温柔 提交于 2021-02-08 03:55:17
问题 I've had a hard time getting two columns from a CSV file with which I am planning on building a basic bar chart. I was planning on getting 2 arrays (one for each column) within one array that I would use as such to build a bar chart. Just getting started with D3, as you can tell. Currently loading the data in gets me an array of objects, which is then a mess to get two columns of key-value pairs. I'm not sure my thinking is correct... I see this similar question: d3 - load two specific

D3 Loading in CSV file then using only specific columns

血红的双手。 提交于 2021-02-08 03:54:16
问题 I've had a hard time getting two columns from a CSV file with which I am planning on building a basic bar chart. I was planning on getting 2 arrays (one for each column) within one array that I would use as such to build a bar chart. Just getting started with D3, as you can tell. Currently loading the data in gets me an array of objects, which is then a mess to get two columns of key-value pairs. I'm not sure my thinking is correct... I see this similar question: d3 - load two specific

convert csv data to DataTable in VB.net, capturing column names from row 0

落花浮王杯 提交于 2021-02-08 03:39:29
问题 I've adapted the code from the @tim-schmelter answer to question convert csv data to DataTable in VB.net (see below) I would like to parse in the column titles from row 0 of the csv file DT|Meter Number|Customer Account Number|Serial Number|Port... but I'm not having any luck trying to figure out how to do this. any suggestions would be very appreciated. Public Function csvToDatatable_2(ByVal filename As String, ByVal separator As String) '//////////////////////////////////////// 'Reads a

Updating an .xml document according to a .csv file

独自空忆成欢 提交于 2021-02-08 03:25:28
问题 I'm quite of a newbie in VBA, and I'm struggling to find a solution to my problem. Basically, what I need to do is editing some nodes in an .xml file according to the content of a .csv document. In particular, whenever I loop through the XML document (i.e., "C:\Users\xxx\Desktop\ppp.xml") and I stumble upon a particular node (let it be thing ), I need to read the text of that node and look for it in the CSV file (i.e., C:\Users\xxx\Desktop\mycopy.csv"). Then edit the text of a different node

navigator.msSaveBlob function is not working in IE11

ⅰ亾dé卋堺 提交于 2021-02-07 21:30:02
问题 I have used msSaveBlob() command to download a CSV file. I am facing an issue although navigate.msSaveBlob() is returning true , and there are no errors on console. I am being prompted that File Couldn't be downloaded. Retry or Cancel. I am working on IE11, and OS is Windows Server 2012 R2. I also tried updating IE, but it is still not working. I also tried the samples from MSDN, but facing the same issue. Kindly suggest me how to resolve this issue. Code Snippet: var blob = new Blob(["Sample

navigator.msSaveBlob function is not working in IE11

♀尐吖头ヾ 提交于 2021-02-07 21:27:52
问题 I have used msSaveBlob() command to download a CSV file. I am facing an issue although navigate.msSaveBlob() is returning true , and there are no errors on console. I am being prompted that File Couldn't be downloaded. Retry or Cancel. I am working on IE11, and OS is Windows Server 2012 R2. I also tried updating IE, but it is still not working. I also tried the samples from MSDN, but facing the same issue. Kindly suggest me how to resolve this issue. Code Snippet: var blob = new Blob(["Sample

Comma issue when exporting DataTable to CSV

痞子三分冷 提交于 2021-02-07 20:18:41
问题 I've adopted some code which converts a DataTable into a CSV file. It seems to work well, except for when commas are used in the actual data. Is there a way to display the comma in that case? This is what I've done: StringBuilder sb = new StringBuilder(); IEnumerable<string> columnNames = dtResults.Columns .Cast<DataColumn>() .Select(column => column.ColumnName); sb.AppendLine(string.Join(",", columnNames)); foreach (DataRow row in dtResults.Rows) { IEnumerable<string> fields = row.ItemArray

Python - Reading and writing csv files with utf-8 encoding

我的未来我决定 提交于 2021-02-07 13:37:16
问题 I'm trying to read a csv file the its header contains foreign characters and I'm having a lot of problems with this. first of all, I'm reading the file with a simple csv.reader filename = 'C:\\Users\\yuval\\Desktop\\בית ספר\\עבודג\\new\\resources\\mk'+ str(mkNum) + 'Data.csv' raw_data = open(filename, 'rt', encoding="utf8") reader = csv.reader(raw_data, delimiter=',', quoting=csv.QUOTE_NONE) x = list(reader) header = x[0] data = np.array(x[1:]).astype('float') The var header should be an

Python - Reading and writing csv files with utf-8 encoding

做~自己de王妃 提交于 2021-02-07 13:36:43
问题 I'm trying to read a csv file the its header contains foreign characters and I'm having a lot of problems with this. first of all, I'm reading the file with a simple csv.reader filename = 'C:\\Users\\yuval\\Desktop\\בית ספר\\עבודג\\new\\resources\\mk'+ str(mkNum) + 'Data.csv' raw_data = open(filename, 'rt', encoding="utf8") reader = csv.reader(raw_data, delimiter=',', quoting=csv.QUOTE_NONE) x = list(reader) header = x[0] data = np.array(x[1:]).astype('float') The var header should be an