Oracle considers empty strings to be NULL while SQL Server does not - how is this best handled?

前端 未结 11 1883
挽巷
挽巷 2021-01-01 13:35

I have to write a component that re-creates SQL Server tables (structure and data) in an Oracle database. This component also has to take new data entered into the Oracle d

11条回答
  •  再見小時候
    2021-01-01 14:15

    I'd go with an additional column on the oracle side. Have your column allow nulls and have a second column that identifies whether the SQL-Server side should get a null-value or empty-string for the row.

提交回复
热议问题