gpt4 book ai didi

MySQL更新命令

转载 作者:太空宇宙 更新时间:2023-11-03 10:29:15 24 4
gpt4 key购买 nike

我在 MySQL 中有一个查询

UPDATE `mylandho_foreclosure`.`property_commercial` 
SET `winningBid` = '14000000.00'
WHERE `property_commercial`.`propertyId` =325 LIMIT 1 ;

但它显示警告

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

数据类型为 float(9,2)

最佳答案

Float(9,2) 允许小数点前有 7 个数字,小数点后有 2 个前有 8 个,后有 2 个 .

如果您希望将值更改为您需要的值,则需要增加字段的大小。

你应该看看Numeric Types

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

关于MySQL更新命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2066632/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com