Bonjour,

Comment convertir getdate() vers un format de date "AAAA-MM-JJ hh:mm:ss" ? (exemple : 2008-04-07 04:23:37)

Sans passer par un code SQL de ce type

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
SELECT SUBSTRING (CONVERT(char(8), getdate(), 112 ), 1,4) + '-' + SUBSTRING (CONVERT(char(8), getdate(), 112 ), 5,2)   
            + '-' + SUBSTRING (CONVERT(char(8), getdate(), 112 ), 7,2) + ' '  + CONVERT(char(8), getdate(), 8)
Je suis en ASE 12.0

D'avance merci