public inbox for [email protected]  
help / color / mirror / Atom feed
From: Sanjay Minni <[email protected]>
To: [email protected]
Subject: DEFAULT in update & prepared statements
Date: Wed, 8 Nov 2023 21:32:16 +0530
Message-ID: <CAMpxBo=M35hcH1g4Vg=KRJ0-77FOJcvdrdiVF5KSOAdOG-LvKQ@mail.gmail.com> (raw)

Can DEFAULT (defined for a timestamp column as now() ) be used in
1. prepared statement i.e. EXECUTE ( ..., DEFAULT, ...)
2. in an UPDATE statement  UPDATE TABLE SET update_time = DEFAULT ...

thanks
Sanjay


view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: DEFAULT in update & prepared statements
  In-Reply-To: <CAMpxBo=M35hcH1g4Vg=KRJ0-77FOJcvdrdiVF5KSOAdOG-LvKQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox