Код: Выделить всё
### fnames is an array of file paths (2 csv files)
foreach string f in fnames)
{
## snip
using (StreamReader rdr = new StreamReader(f))
{
string header = read.line(); ## This is the array of table columns
}
string tab = Path.GetFileNameWithoutExtension(f);
string query = @"create table "+ tab + ..."; #I am not sure how to write the column names and types dynamically
}
- Столбцы таблицы 1: дата (datetime), значение (int)
Представьте, что:
Столбцы таблицы 1: дата (datetime), значение (int)
Столбцы таблицы 2: дата (datetime), идентификатор (varchar(255)), возврат (int)
Как этого добиться?
Подробнее здесь: https://stackoverflow.com/questions/190 ... ng-c-sharp