📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the difference between NULL and an empty string ”?

A. NULL means no value exists, while '' is a known value with zero length ✅
B. NULL uses more storage always
C. They are identical
D. Empty string means unknown, NULL means zero

Correct Answer: A. NULL means no value exists, while '' is a known value with zero length

Explanation

  • An empty string is a known value of length zero, while NULL means the value is absent.
  • They behave differently in comparisons and counts.