开发者

SQL Server BULK Insert with non standard NULL value

I 开发者_如何学Pythonhave a large CSV file with columns that support NULL but the value for NULL is "NA". How can I import this to SQL server without replacing those values with NULL?


Import it as the string NA. It isn't NULL. Nothing to worry about.


If the field is a *char then why not import the value as NA, and then run a bulk update setting the field to NULL after import?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜