What does ‘abc’ || ‘xyz’, when PIPES_AS_CONCAT is enabled, result in?

Trang Mắm

New member
What does ‘abc’ || ‘xyz’, when PIPES_AS_CONCAT is enabled, result in?
A. 0
B. 1
C. abcxyz
D. xyzabc
 
Answer: c
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’.
 

Tìm kiếm

Back
Top