Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iKMsl-0003N9-S5 for pgsql-general@arkaria.postgresql.org; Tue, 15 Oct 2019 13:29:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iKMsj-00041R-MY for pgsql-general@arkaria.postgresql.org; Tue, 15 Oct 2019 13:28:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iKMsj-00041H-Cm for pgsql-general@lists.postgresql.org; Tue, 15 Oct 2019 13:28:57 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iKMsg-0004rW-CK for pgsql-general@lists.postgresql.org; Tue, 15 Oct 2019 13:28:56 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 46sx8g6HrDz1XxN for ; Tue, 15 Oct 2019 09:28:51 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 17622) id 46sx8g4plCz1ZVj; Tue, 15 Oct 2019 09:28:51 -0400 (EDT) Date: Tue, 15 Oct 2019 09:28:51 -0400 From: stan To: pgsql-general@lists.postgresql.org Subject: SELECT returnig a constant Message-ID: <20191015132851.GA6232@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 "=7F'rate' 1 line, then= it returns a syntax error. How can I do this? --=20 "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin