Las únicas formas que recuerdo ahora son usando UNION
o creando una TEMPORARY TABLE
e insertar esos valores en él. ¿Te conviene?
TEMPORARY_TABLE
(probado y funciona):
Creación:
CREATE TEMPORARY TABLE MyInlineTable (id LONG, content VARCHAR(1) );
INSERT INTO MyInlineTable VALUES
(1, 'a'),
(2, 'b'),
(3, 'c');
Uso:
SELECT
MyTable.*,
MyInlineTable.CONTENT
FROM
MyTable
JOIN
SELECT * FROM MyInlineTable;
ON MyTable.ID = MyInlineTable.ID
TEMPORARY_TABLES
de por vida (referencia)
:
.
.