Why is a nested cast NOT working in MySQL? (It does using SQL Server)
select cast(cast(myColumn as decimal(5,2)) as int) from myTable
Why is a nested cast NOT working in MySQL? (It does using SQL Server)
select cast(cast(myColumn as decimal(5,2)) as int) from myTable
This query is working on the concept of nested cast.
cast(sum(cast(Column_name int )+ cast(Column_name as int)) as bigint) as payment from table_name
According to the manual:
So, just follow the manual:
or