mysql – 嵌套的CAST无法正常工作
发布时间:2021-03-05 18:22:29 所属栏目:MySql教程 来源:网络整理
导读:为什么嵌套的转换不适用于MySQL? (它确实使用SQL Server) select cast(cast(myColumn as decimal(5,2)) as int) from myTable SQLFiddle Example最佳答案根据the manual: CAST(expr AS type) [] CONVERT(expr,type) [] The type can be one of the followi
为什么嵌套的转换不适用于MySQL? (它确实使用SQL Server)
SQLFiddle Example 最佳答案 根据the manual:
所以,只需按照手册:
要么
(编辑:青岛站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |