1.

Which of the following is an illegal unquoted identifier name?(a) 123_id(b) 123id(c) id1(d) 123This question was posed to me in semester exam.I would like to ask this question from MySQL Identifier Syntax and Naming Rules topic in chapter Using SQL to Manage Data of MySQL

Answer»

Correct option is (d) 123

Explanation: In MySQL, the quoted and unquoted IDENTIFIER names have differences in the level of RESTRICTIONS imposed on them. An unquoted identifier name can’t have all digits since it would be impossible to distinguish it from an INTEGER CONSTANT.



Discussion

No Comment Found

Related InterviewSolutions