Re: Appending from a Cursor

Author: Gene Wirchenko

Posted: 2018-04-12 at 17:06:21

At 06:21 2018-04-12, Alan Bourke <alanpbourke@fastmail.fm> wrote:

>On Thu, 12 Apr 2018, at 1:31 PM, Jean MAURICE wrote:

> > Hi Gene,

> >

> > 'append from' appends data from a file on the disk and a cursor

> is not a file !

>

>A cursor may or may not have a disk presence depending on various factors.

>

>But SQL is a a better way to do it.

>

>insert into mytable (f1, f2, f3) select (f1, f2, f3) from mycursor

That was the way I ended up doing it.

Sincerely,

Gene Wirchenko

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/5463394478cbd485ba003006c1922a27@mtlp000085

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2018 Gene Wirchenko