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 1s8jqg-00ExWf-0A for pgsql-general@arkaria.postgresql.org; Sun, 19 May 2024 16:57:27 +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 1s8jqg-00DLw4-0Y for pgsql-general@arkaria.postgresql.org; Sun, 19 May 2024 16:57:26 +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 1s8jqf-00DLvw-MC for pgsql-general@lists.postgresql.org; Sun, 19 May 2024 16:57:25 +0000 Received: from smtp98.iad3b.emailsrvr.com ([146.20.161.98]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s8jqc-0013a0-Fq for pgsql-general@lists.postgresql.org; Sun, 19 May 2024 16:57:25 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp5.relay.iad3b.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 51A55400AC; Sun, 19 May 2024 12:57:21 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Updating 457 rows in a table From: Christophe Pettus In-Reply-To: <164b3681-7a42-1e5-6a7b-80196ed33ded@appl-ecosys.com> Date: Sun, 19 May 2024 09:56:50 -0700 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <1E14886A-BBCB-40E4-8231-1159D12BD261@thebuild.com> References: <164b3681-7a42-1e5-6a7b-80196ed33ded@appl-ecosys.com> To: Rich Shepard X-Mailer: Apple Mail (2.3774.600.62) X-Classification-ID: aab3add6-dec8-4072-a54e-c517aafcb1ec-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 19, 2024, at 09:54, Rich Shepard = wrote: >=20 > Specifically, in the 'people' table I want to change the column = 'active' > from false to true for 457 specific person_id row numbers. UPDATE people SET active=3Dtrue WHERE id IN (...); The ... can either be an explicit list of the ids, or a SELECT id WHERE = if you have a predicate that selects the appropriate ids.=