Syntax

From: arun chirappurath <arunsnmimt(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Syntax
Date: 2023-12-07 08:00:39
Message-ID: CAA23SdtRyKTfV8PTvzW690XgyKzfKCEX_80_CjEZp5c8ykFPmQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

What is the difference or use case for below syntaxes?

do $$
declare d int;
begin
RAISE INFO 'Script started at %', CURRENT_TIMESTAMP;
update employees set first_name = 'g' where employee_id = 1; get
diagnostics d = row_count; raise info 'selected: % rows', d;
RAISE INFO 'Script finished at %', CURRENT_TIMESTAMP; end;$$;

Or

Just

Begin;

Update statements

Commit;

Responses

  • Re: Syntax at 2023-12-07 11:14:44 from Ron Johnson

Browse pgsql-general by date

  From Date Subject
Next Message Arne Henrik Segtnan 2023-12-07 08:09:07 Re: PostgreSQL 12 error unrecognized configuration parameter zbx_tmp.wal_json_res
Previous Message Vishwanath Kummera 2023-12-07 06:12:00 Postgresql : pg_temp & pg_toast_temp