Home » MYSQL » MySQL Type Conversion in Expression Evaluation » Question
  1. If the PIPES_AS_CONCAT is disabled, ‘abc’ || ‘xyz’ results in ____________.
    1. -1
    2. 1
    3. 0
    4. error
    5. None of these
Correct Option: C

When the SQL mode PIPES_AS_CONCAT is disabled, the SQL standard ‘||’ operation for string concatenation is not valid in MySQL. Both operands are converted to zero. So the result is zero.



Your comments will be displayed only after manual approval.