Oracle treating empty string as NULL problem for a Java / JPA programmer

后端 未结 6 2440
失恋的感觉
失恋的感觉 2021-02-19 17:22

How do you handle this situation where Oracle stores the empty string as a null in the database ?

I would like it to be stored as an empty string as it is not as NULL, s

6条回答
  •  长发绾君心
    2021-02-19 17:43

    No, there is no way to treat empty strings as empty strings. Oracle always treats a string of length zero as a NULL value.

提交回复
热议问题