SQL Server convertit la chaîne à ce jour
select Cast( '2021-09-22' as date ) as castedDate;
select convert(date,'20210922') as convertedDate;
MzanziLegend
select Cast( '2021-09-22' as date ) as castedDate;
select convert(date,'20210922') as convertedDate;
-- Specifically for Oracle
-- EXAMPLE
CAST('732.98' AS INT)
/* SYNTAX
CAST(<value_to_cast> AS <data_type_to_cast_to>)
*/
SELECT CONVERT(52.2, SIGNED INTEGER); -- result : 52