|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Sep 2004
Messaggi: 3967
|
[MySql/C#]impazzisco :(
da mysql:
Codice:
select tempo_totale from tempi where ID_Jobs = '1'; mi restituisce: 32:30:00 Codice:
string monteore = "SELECT totale from tempi where ID_Jobs = '" + cmbID.ComboBox.Text + "' "; MySqlCommand cmd = new MySqlCommand(monteore, cn); string s = cmd.ExecuteScalar().ToString(); toolStripLabel3.Text = s; //mi restituisce: 1.08:30:00 ![]() ![]() ![]()
__________________
Dai wafer di silicio nasce: LoHacker... il primo biscotto Geek ![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Sep 2004
Messaggi: 3967
|
ok, mi martello sul cranio da solo:
Codice:
string monteore = "SELECT TIME_FORMAT(totale, '%H.%i') from tempi where ID_Jobs = '" + cmbID.ComboBox.Text + "' "; MySqlCommand cmd = new MySqlCommand(monteore, cn); string s = cmd.ExecuteScalar().ToString(); toolStripLabel3.Text = s; ![]()
__________________
Dai wafer di silicio nasce: LoHacker... il primo biscotto Geek ![]() |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 12:11.