macromedia.coldfusion.database_access
[Top] [All Lists]

Re: recordcount without query

Subject: Re: recordcount without query
From: Adam Cameron <adam_junk@xxxxxxxxxxx>
Date: Sun, 24 Feb 2008 18:56:31 +0000
Newsgroups: macromedia.coldfusion.database_access

> without any complicated query.

Well SELECT COUNT(*) FROM table is hardly complicated.

What you could do is add a column to the large table "migrated" or
something like that.  Default the value to 0.

When you query the rows to migrate, do this:

select [column list]
from table
where migrate = 0

After migrating those records, update the original table so that migrate is
1 for those records.

-- 
Adam

<Prev in Thread] Current Thread [Next in Thread>