Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHWgZ-008d1F-3W for pgsql-general@arkaria.postgresql.org; Wed, 12 Jun 2024 22:43:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sHWgW-008tam-TS for pgsql-general@arkaria.postgresql.org; Wed, 12 Jun 2024 22:43:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHWgW-008tae-Ir for pgsql-general@lists.postgresql.org; Wed, 12 Jun 2024 22:43:17 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHWgU-001Mal-Js for pgsql-general@lists.postgresql.org; Wed, 12 Jun 2024 22:43:16 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 32BC32A2B7C for ; Wed, 12 Jun 2024 15:43:12 -0700 (PDT) Date: Wed, 12 Jun 2024 15:43:12 -0700 (PDT) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Definging columns for INSERT statements In-Reply-To: Message-ID: References: <27d9076-c416-7847-7bd-159a5c3ee38a@appl-ecosys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 12 Jun 2024, David G. Johnston wrote: >> INSERT INTO people (person_nbr >> DEFAULT('people_person_nbr_seq'),lname,fname,job_title DEFAULT >> 'Contact',company_nbr,loc_nbr,direct_phone,cell_phone,email,active >> DEFAULT('true')) VALUES >> > > https://www.postgresql.org/docs/current/sql-insert.html > > Not sure where you got the idea that something besides a plain column name > can appear in the optional parentheses after the table name. David, I've not used nextval() before which is why I asked. Thanks, Rich