Fórum SQL SERVER data em branco #366482
26/11/2008
0
Como inserir data em branco na base de dados
´,´ + #39 + FormatDateTime(´mm/dd/yyyy´, iif(empty(dbfClientesDT_CAD.AsString),StrToDateTime(´ / / 00:00:00´),dbfClientesDT_CAD.AsDateTime)) + 39 +
´,´ + 39 + FormatDateTime(´mm/dd/yyyy´, iif(empty(dbfClientesDT_CAD.AsString),StrToDateTime(´ - - 00:00:00´),dbfClientesDT_CAD.AsDateTime)) + 39 +
´,´ + 39 + FormatDateTime(´mm/dd/yyyy´, iif(dbfClientesDT_CAD.IsNull,StrToDateTime(´ / / 00:00:00´),dbfClientesDT_CAD.AsDateTime)) + 39 +
´,´ + #39 + FormatDateTime(´mm/dd/yyyy´, iif(empty(dbfClientesDT_CAD.AsString),StrToDateTime(´ / / 00:00:00´),dbfClientesDT_CAD.AsDateTime)) + 39 +
´,´ + 39 + FormatDateTime(´mm/dd/yyyy´, iif(empty(dbfClientesDT_CAD.AsString),StrToDateTime(´ - - 00:00:00´),dbfClientesDT_CAD.AsDateTime)) + 39 +
´,´ + 39 + FormatDateTime(´mm/dd/yyyy´, iif(dbfClientesDT_CAD.IsNull,StrToDateTime(´ / / 00:00:00´),dbfClientesDT_CAD.AsDateTime)) + 39 +
I-master
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)