MOON
Server: Apache
System: Linux kvm.asjudinet.com 5.14.0-611.54.6.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 04:23:18 EDT 2026 x86_64
User: asjudine (1001)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/doc/firebird/sql.extensions/README.alternate_string_quoting.txt
------------------------
Alternate String Quoting
------------------------

Support for alternate format of strings literals.

Author:
    Adriano dos Santos Fernandes <adrianosf@uol.com.br>

Syntax:

<alternate string literal> ::=
    { q | Q } <quote> <alternate start char> [ { <char> }... ] <alternate end char> <quote>

Syntax rules:
    When <alternate start char> is '(', '{', '[' or '<', <alternate end char> is respectively
    ')', '}', ']' and '>'. In other cases, <alternate end char> is equal to <alternate start char>.

Notes:
    Inside the string, i.e., <char> items, single (not escaped) quotes could be used.
    Each quote will be part of the result string.

Examples:
    select q'{abc{def}ghi}' from rdb$database;        -- result: abc{def}ghi
    select q'!That's a string!' from rdb$database;    -- result: That's a string