MySQL Forums
Forum List  »  Spanish

Update a un dato tipo float
Posted by: Gabriel M
Date: March 18, 2011 03:43PM

Hola a todos, tengo un servidor mysql version 5.1.37-1 corriendo en linux.
Aqui hay una base de datos bastante simple, a la que quiero hacer un simple update a un campo en particular.

Tabla facturas:
ident mediumint(8) unsigned primary key,
kilo_neto float(11,2)
total float(11,2)
etc...

en la tabla hay un registro con los siguientes datos:

ident = 21
Kilo_neto = 712506.94
total = 736102.56

entonces quiero cambiar algunos datos y por consola aplico...

mysql> update facturas set Kilo_neto = 712506.96 where ident = 21;
Query OK, 0 rows affected (0,00 sec)
Rows matched: 1 Changed: 0 Warnings: 0

Entonces mysql encuentra el registro pero no hace el cambio de la cifra.
¿por que no me cambiara los decimales?
Gracias por cualquier ayuda

Options: ReplyQuote


Subject
Views
Written By
Posted
Update a un dato tipo float
3100
March 18, 2011 03:43PM
843
April 08, 2011 08:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.