Re: [WebDNA] copy some database fields into a new database

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112683
interpreted = N
texte = 266 --Apple-Mail=_5D8F504B-0CBE-4A6B-9B51-D30245ECE5C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii To clarify, are you trying to copy a few columns of all 3100 records to = a new database, or copy X number of rows from one database to another?=20= It sounds like you want to do this: [writefile file=3Dnew.db]IDfield1field2field3 [/writefile] [search db=3Doriginal.db&neIDfield=3D[blank]] [founditems] [appendfile file=3Dnew.db&secure=3DF][index] = [originaldb-field-a][originaldb-field-d] [originaldb-field-f] [/appendfile] [/founditems] [/search] in this case, the [founditems] is doing the work of a looping type = functionality.=20 -Brian B. Burton > On Mar 24, 2016, at 3:23 PM, Rich Kwas = wrote: >=20 > I have a db with 3100+ records > I need to copy some fields from this db into a brand new db. >=20 > Would using [Loop] be a good way to do this? > Another way? >=20 > I tried to use [loop] but I got into an endless loop where nothing but = blank records was being written into a new db. I was searching for "all" = the records and then appending certain fields into the new db. I had to = pull the plug on the pc after 43,000 records, couldn't figure out a way = to break the loop. >=20 > [Loop] isn't explained in great detail in the docs and the one sample = is pretty simple... > I've never needed to use the [loop] context I guess so never utilized = it before. >=20 >=20 > Rich > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_5D8F504B-0CBE-4A6B-9B51-D30245ECE5C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii To clarify, are you trying to copy a few columns of all 3100 = records to a new database, or copy X number of rows from one database to = another? 

It = sounds like you want to do this:

[writefile file=3Dnew.db]ID= field1= field2= field3
[/writefile]

[search = db=3Doriginal.db&neIDfield=3D[blank]]
= [founditems]
[appendfile = file=3Dnew.db&secure=3DF][index] [originaldb-field-a]= [originaldb-field-d] [originaldb-field-f]
[/appendfile]
= [/founditems]
[/search]

in this case, the = [founditems] is doing the work of a looping type = functionality. 


-Brian B. = Burton

On Mar 24, 2016, at 3:23 PM, Rich Kwas <richkwasniewski@yahoo.com> wrote:

I = have a db with 3100+ records
I = need to copy some fields from this db into a brand new db.

Would using [Loop] be a good way to do this?
Another way?

I tried to use [loop] but I got into an endless = loop where nothing but blank records was being written into a new db. I = was searching for "all" the records and then appending certain fields = into the new db. I had to pull the plug on the pc after 43,000 records, = couldn't figure out a way to break the loop.

[Loop] isn't explained in great detail in the = docs and the one sample is pretty simple...
I've = never needed to use the [loop] context I guess so never utilized it = before.


Rich
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_5D8F504B-0CBE-4A6B-9B51-D30245ECE5C4-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] copy some database fields into a new database (Rich Kwas 2016)
  2. Re: [WebDNA] copy some database fields into a new database (Brian Burton 2016)
  3. Re: [WebDNA] copy some database fields into a new database (Rich Kwas 2016)
  4. Re: [WebDNA] copy some database fields into a new database (Brian Burton 2016)
  5. [WebDNA] copy some database fields into a new database (Rich Kwas 2016)
266 --Apple-Mail=_5D8F504B-0CBE-4A6B-9B51-D30245ECE5C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii To clarify, are you trying to copy a few columns of all 3100 records to = a new database, or copy X number of rows from one database to another?=20= It sounds like you want to do this: [writefile file=3Dnew.db]IDfield1field2field3 [/writefile] [search db=3Doriginal.db&neIDfield=3D[blank]] [founditems] [appendfile file=3Dnew.db&secure=3DF][index] = [originaldb-field-a][originaldb-field-d] [originaldb-field-f] [/appendfile] [/founditems] [/search] in this case, the [founditems] is doing the work of a looping type = functionality.=20 -Brian B. Burton > On Mar 24, 2016, at 3:23 PM, Rich Kwas = wrote: >=20 > I have a db with 3100+ records > I need to copy some fields from this db into a brand new db. >=20 > Would using [loop] be a good way to do this? > Another way? >=20 > I tried to use [loop] but I got into an endless loop where nothing but = blank records was being written into a new db. I was searching for "all" = the records and then appending certain fields into the new db. I had to = pull the plug on the pc after 43,000 records, couldn't figure out a way = to break the loop. >=20 > [loop] isn't explained in great detail in the docs and the one sample = is pretty simple... > I've never needed to use the [loop] context I guess so never utilized = it before. >=20 >=20 > Rich > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_5D8F504B-0CBE-4A6B-9B51-D30245ECE5C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii To clarify, are you trying to copy a few columns of all 3100 = records to a new database, or copy X number of rows from one database to = another? 

It = sounds like you want to do this:

[writefile file=3Dnew.db]ID= field1= field2= field3
[/writefile]

[search = db=3Doriginal.db&neIDfield=3D[blank]]
[appendfile = file=3Dnew.db&secure=3DF][index] [originaldb-field-a]= [originaldb-field-d] [originaldb-field-f]
[/appendfile]
= [/founditems]
[/search]

in this case, the = [founditems] is doing the work of a looping type = functionality. 


-Brian B. = Burton

On Mar 24, 2016, at 3:23 PM, Rich Kwas <richkwasniewski@yahoo.com> wrote:

I = have a db with 3100+ records
I = need to copy some fields from this db into a brand new db.

Would using [loop] be a good way to do this?
Another way?

I tried to use [loop] but I got into an endless = loop where nothing but blank records was being written into a new db. I = was searching for "all" the records and then appending certain fields = into the new db. I had to pull the plug on the pc after 43,000 records, = couldn't figure out a way to break the loop.

[loop] isn't explained in great detail in the = docs and the one sample is pretty simple...
I've = never needed to use the [loop] context I guess so never utilized it = before.


Rich
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_5D8F504B-0CBE-4A6B-9B51-D30245ECE5C4-- . Brian Burton

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b15MacPlugin - [protect] (1997) [format 40s]text[/format] doesn't work (1997) Nested vs conditional (1997) WebCatalog Beta Documentation (1997) WebCatalog 2.0 b 15 mac (1997) shipping costs (1997) [WebDNA] passing a variable in an include - precedence (2017) Dummy Credit Card Number for debug? (1997) Field Contents Raw (1999) SERIAL NUMBER BEING LOST AGAIN!!! (1999) Random Images (2000) Database Options (1997) [TCPconnect].... (2001) Exclude by date - multiple (1997) Protect vs Authenicate (1997) WebCat2b12plugin - [search] is broken ... not! (1997) Looping control (1997) Email problem.. (2004) DB problem (2006) How To question on setting up downloads (1997)