1.

‘abc’ || ‘xyz’, when PIPES_AS_CONCAT is enabled, results in ____________(a) 0(b) 1(c) abcxyz(d) xyzabcI got this question in an online quiz.This intriguing question comes from Expression Evaluation and Type Conversion in section Data Types of MySQL

Answer»

Right option is (c) abcxyz

To explain I would SAY: 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