🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Keys and Constraints: all 10 questions

Quiz: Keys and Constraints · Question 10 of 10

An INSERT gives no value for a column declared city VARCHAR(30) DEFAULT 'Jaipur'. What is stored?

An INSERT gives no value for a column declared city VARCHAR(30) DEFAULT 'Jaipur'. What is stored?

  1. A.NULL
  2. B.An error is raised
  3. C.An empty string
  4. D.'Jaipur'
Answer & explanation

Correct answer: 'Jaipur'

DEFAULT fills the value when none is given.

Can you get the rest right without peeking?

Take the timed Quiz: Keys and Constraints quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →