2 Answers
- Newest
- Most votes
- Most comments
0
I think that you are seeing this error because of the presence of empty string '' or "" but not the Null value. Please understand that there is a difference between Null value and empty string.
- A Null is a value that is UNKNOWN so nothing is present.
- An empty string is of type string but it has some value which is an empty one.
As far as I know, Null should not occupy any space in the memory as opposed to empty string.
This might be the reason why IS NOT NULL is not working for you. Therefore, please try running a query that will ignore empty strings instead of NULL values. For example, I have a table named 'test' and in one of the columns I stored a '' (empty string). I successfully ignored it using the below query:
SELECT * FROM test WHERE column1 <> ''
Try this on your end as well.
Relevant content
- asked 8 months ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 months ago