How do I remove the “.000000” part of the “2386.000000” field? I want to leave only the numerical part before the dot in databricks
Advertisement
Answer
You can use cast
select cast(2386.000000 as int) i
How do I remove the “.000000” part of the “2386.000000” field? I want to leave only the numerical part before the dot in databricks
You can use cast
select cast(2386.000000 as int) i