TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
77
13.8k
import data from csv file into postgreSQL
Jul 14 2020 3:12 AM
Hi, I need help to import data from CSV file into PostgreSQL
In the code below, it will open the CSV file and read the data line by line.
foreach (string path in Directory.EnumerateFiles(@"C:\ipub\root", "*.csv"))
{
string[] lines = System.IO.File.ReadAllLines(path);
foreach (string line in lines)
{
Console.WriteLine(line);
}
}
The question is how to import all the data into the database after it already read?
This application doesn't have a button to upload the CSV file.
thank you
I'm using visual studio 2019, c#
Reply
Answers (
2
)
how to i increment months in c# windows application
Make a partial loan payments in c# windows application