1.

What does ‘abc’ || ‘xyz’, when PIPES_AS_CONCAT is enabled, result in?(a) 0(b) 1(c) abcxyz(d) xyzabcThe question was asked in quiz.My doubt is from External Security: Preventing Unauthorized Network Access in division Access Control and Security of MySQL

Answer»

The correct answer is (c) ABCXYZ

Explanation: If the SQL mode PIPES_AS_CONCAT has been enabled, the SQL standard ‘||’ operation for string concatenation BECOMES VALID in MYSQL. Both operands are concatenated to give ‘abcxyz’.



Discussion

No Comment Found

Related InterviewSolutions