Bug solved: mysql create table field Double Type Length

import excel when new data is found to create visual distance and installation height is double type in the database

 

 Program finish, after the successful implementation of data in the database is 2, there is no data after the decimal point

Print sql sql and after the execution did not discover the error,

Check the database structure found height field is created for the double (4,0), 4 bit length , decimal 0, there is no way to deposit 0.5

Modify the database structure is double (4,2), the implementation of sql again saved successfully deposited 2.5

 

Guess you like

Origin www.cnblogs.com/koudaiyoutang/p/11758252.html