pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sbelow <sbelow@dundee.net>
To: pgsql-sql@postgresql.org
Subject: filtering
Date: Wed, 27 Jun 2001 13:43:32 GMT
Message-ID: <8ql_6.775$5d.347596@newshog.newsread.com> (raw)

I'm using '
m_pSet->Open(AFX_DB_USE_DEFAULT_TYPE,"SELECT * FROM tblPMTasks WHERE
[TaskDue] = 1");
to filter out certain records.
I want to add a filter to the current one how can I go about this? Or should
I reconstruct to a basic 'Open()' statement and use this example given from
MSDN.

CCustSet rsCustSet( NULL );
// Set the filter
rsCustSet.m_strFilter = "state = 'CA'";
// Run the filtered query
rsCustSet.Open( CRecordset::snapshot, "Customers" );

Thanks in advance for your help
Steve






view thread (4+ messages)  latest in thread

Message-ID: <8ql_6.775$5d.347596@newshog.newsread.com>
Permalink:  ../8ql_6.775$5d.347596@newshog.newsread.com/
Also on:    postgresql.org/message-id/8ql_6.775$5d.347596@newshog.newsread.com

 · 

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: pgsql-sql@postgresql.org
  Cc: sbelow@dundee.net
  Subject: Re: filtering
  In-Reply-To: <8ql_6.775$5d.347596@newshog.newsread.com>

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

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