Bonjour,
j'ai un champ date sous SQL Server du type 2007-05-03 10:50:33 que je voudrais transformer en 2007-05-00 00:00:00
Quelqu'un sait-il comment faire?
merci
mat
Bonjour,
j'ai un champ date sous SQL Server du type 2007-05-03 10:50:33 que je voudrais transformer en 2007-05-00 00:00:00
Quelqu'un sait-il comment faire?
merci
mat
A +
Code : Sélectionner tout - Visualiser dans une fenêtre à part CAST(FLOOR(CAST(MaDate AS FLOAT) AS DATETIME)
Frédéric Brouard - SQLpro - ARCHITECTE DE DONNÉES - expert SGBDR et langage SQL
Le site sur les SGBD relationnels et le langage SQL: http://sqlpro.developpez.com/
Blog SQL, SQL Server, SGBDR : http://blog.developpez.com/sqlpro
Expert Microsoft SQL Server - M.V.P. (Most valuable Professional) MS Corp.
Entreprise SQL SPOT : modélisation, conseils, audit, optimisation, formation...
* * * * * Expertise SQL Server : http://mssqlserver.fr/ * * * * *
Partager