View Full Version : aiutino x query in sql server
Come si fà a convertire le stringhe in date?
Per esempio se volessi fare la query seguente in Oracle farei :
select * from tabella where tabella.campo >= to_date('01-01-2003','dd-mm-yyyy')
come si fà con sql server?
:confused: :(
Alekhine
04-08-2003, 12:02
Originariamente inviato da Pipppos
Come si fà a convertire le stringhe in date?
Per esempio se volessi fare la query seguente in Oracle farei :
select * from tabella where tabella.campo >= to_date('01-01-2003','dd-mm-yyyy')
come si fà con sql server?
:confused: :(
In SQLServer la conversione da CHAR a DATE è di tipo implicito quindi non hai bisogno di usare CAST o CONVERT
;)
Originariamente inviato da Alekhine
In SQLServer la conversione da CHAR a DATE è di tipo implicito quindi non hai bisogno di usare CAST o CONVERT
;)
imho giusto.
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.