Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Update or Insert record
Thu, Mar 1 2007 3:43 PMPermanent Link

John
Hi.

I need to update a record if it exist, or if it does not exist then it must be inserted.

How does such a query look like?
Thu, Mar 1 2007 5:06 PMPermanent Link

Jason Lee
Hi John,

No built-in feature, but a workaround in Delphi is:

UpdateQuery.ExecSQL;
if UpdateQuery.RowsAffected = 0 then InsertQuery.ExecSQL;

~Jason Lee


John wrote:
> Hi.
>
> I need to update a record if it exist, or if it does not exist then it must be inserted.
>
> How does such a query look like?
>
Sat, Mar 3 2007 11:59 AMPermanent Link

"Johnnie Norsworthy"
"John" <eydunl@post.olivant.fo> wrote in message
news:A4F6261D-07B5-4790-81EF-16C7719A55B1@news.elevatesoft.com...
> I need to update a record if it exist, or if it does not exist then it
> must be inserted.

I posted an interest in something like this a while back in .suggestions,
and I believe Tim hinted it might be an addition in the future.

Thread was "INSERTORUPDATE?" posted 2006-06-02

-Johnnie

Sun, Mar 4 2007 4:16 PMPermanent Link

Steve Forbes

Team Elevate Team Elevate

Hi John,

I would also vote for this extension to be included.

MySQL has this, and I have found it to be a great timesaver.
--
Best regards

Steve

"John" <eydunl@post.olivant.fo> wrote in message
news:A4F6261D-07B5-4790-81EF-16C7719A55B1@news.elevatesoft.com...
> Hi.
>
> I need to update a record if it exist, or if it does not exist then it
> must be inserted.
>
> How does such a query look like?
>

Mon, Mar 5 2007 9:25 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Johnnie,

<< I posted an interest in something like this a while back in .suggestions,
and I believe Tim hinted it might be an addition in the future. >>

Yes, it's on the list.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image