Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - SQL Reference » SQL language elements » Operators


String operators

  • expression || expression   String concatenation (two vertical bars). If either string is NULL, it is treated as the empty string for concatenation.

  • expression + expression   Alternative string concatenation. When using the + concatenation operator, you must ensure the operands are explicitly set to character data types rather than relying on implicit data conversion.

    For example, the following query returns the integer value 579:

    SELECT 123 + 456;

    whereas the following query returns the character string 123456:

    SELECT '123' + '456';

You can use the CAST or CONVERT function to explicitly convert data types.

 Standards and compatibility

OPENXML operator