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
hasib budi
NA
20
5.3k
update column in database
Sep 20 2020 10:19 PM
Hi, i have problem with update column in database. For right now i have a table name fileinfo, which contain csv file name,file size and number of row in csv. For first time the program run.It will save the csv file name and file size into fileinfo. The second time running. It will open csv file and save number of row in csv. The problem is if the fileinfo has two file. Both will have same value. for example, if csv file1 has 300row,csv file2 also will have 300row but in folder csv file2 only have 10 row. How can i do it ?
int
row = list.Count;
Console.WriteLine(
"Number of row "
+ row);
var upd1 = "update fileinfo
set
row =@row;
var cmd5 =
new
NpgsqlCommand(upd1, conn);
cmd5.Parameters.AddWithValue(
"@row"
, Convert.ToDouble(row));
Reply
Answers (
4
)
How to check class property exist or not
How to add page number in C# generated PDF. Format "Page 1of n"