SQL Change null values for integer column

  • You could add a step to update your file before the BCP.

    or

    In your select, you could use a CASE statement to replace NULL with 0

    SELECT 
    CASE WHEN FIELD1 is NULL then 0 ELSE FIELD1 END
    , FIELD2, FIELD3
    from MYFILE

    • This reply was modified 3 years ago by homebrew01.

Viewing post 1 (of 2 total)

You must be logged in to reply to this topic. Login to reply