sql字符串转换成小数(decimal)

select goods_id,IFNULL(months,0) as months
    from goods
     where IFNULL(months,0) <= cast('12.0' as decimal(18,1))

    原文作者:零碎記忆
    原文地址: https://blog.csdn.net/ZT1090258642/article/details/104803466
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞