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
Kamil Yakoubi
NA
1
559
SUM time and disply it
May 10 2016 3:59 PM
hi
i have mysql table (arret) , i want to sum (duree) it's time column (HH:MM:SS)
i tried this
string query =
"SELECT SEC_TO_TIME( SUM( TIME_TO_SEC( `duree` ) ) ) FROM arret ;"
;
cmd =
new
MySql.Data.MySqlClient.MySqlCommand(query, conn);
try
{
conn.Open();
int
s = cmd.ExecuteNonQuery();
label1.Text = s.ToString();
}
catch
(Exception ex)
{
MessageBox.Show(
this
, ex.Message);
}
conn.Close();
it's giving me (-1)
my table contains 00:09:00
00:12:32
Reply
Answers (
1
)
Excel open 3 times and wont close until i use the task manag
How can I retrieve two column values using autosuggestion