开发者

MySQL Update command

开发者 https://www.devze.com 2022-12-17 12:28 出处:网络
I have a query in MySQL开发者_如何学Go UPDATE `mylandho_foreclosure`.`property_commercial` SET `winningBid` = \'14000000.00\'

I have a query in MySQL

开发者_如何学Go
UPDATE `mylandho_foreclosure`.`property_commercial` 
SET `winningBid` = '14000000.00' 
WHERE `property_commercial`.`propertyId` =325 LIMIT 1 ;

but it shows warning

Warning: #1264 Out of range value adjusted for column 'winningBid' at row 1

datatype is float(9,2)


Float(9,2) would allow for 7 numbers before the decimal, and 2 after, you have 8 before and 2 after.

You need to increase the size of the filed if you wish to change the value to what you require.

You should have a look at Numeric Types

For example, a column defined as FLOAT(7,4) will look like -999.9999

0

精彩评论

暂无评论...
验证码 换一张
取 消