Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Pull an Empty DateTime?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01094019
Message ID:
01094038
Vues:
13
Perfect! Thanks!


>>I'm trying to create a datetime column on the fly with SQL. Having it
>>NULL is fine, I'm just not sure of the syntax.
>>
>>
>>
>>>You cannot. Sql Server doesn't support empty datetime. Consider using NULL instead.
>>>
>>>>How do you get an empty datetime column returned from SQL, as in:
>>>>
>>>>
>>>>SELECT {} AS MyDate;
>>>>  FROM MyTable...
>>>>
>>>>
>
>
>SELECT Cast(NULL AS DateTime) AS MyDate FROM MyTable...
>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform