SELECT returnig a constant

Поиск
Список
Период
Сортировка
От stan
Тема SELECT returnig a constant
Дата
Msg-id 20191015132851.GA6232@panix.com
обсуждение исходный текст
Ответы SOLVED Re: SELECT returnig a constant  (stan <stanb@panix.com>)
Re: SELECT returnig a constant  (Ray O'Donnell <ray@rodonnell.ie>)
Список pgsql-general
I used to be able to return a constant value in a SELECT statement in
ORACLE. I need to populate a table for testing, and I was going to do so
like this:

SELECT
        employee.id ,
        project.proj_no ,
        work_type.type  ,
        'rate' 1
FROM employee
CROSS JOIN project
CROSS JOIN work_type;

This statement works correctly, till I add the last "'rate' 1 line, then it
returns a syntax error.

How can I do this?


--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                        -- Benjamin Franklin



В списке pgsql-general по дате отправления:

Предыдущее
От: Markus Heiden
Дата:
Сообщение: Re: How to make runtime partition pruning work?
Следующее
От: stan
Дата:
Сообщение: SOLVED Re: SELECT returnig a constant