Re: sql select where clauses

From: Frank Hickman [MVP] (fhickman_NOSP_at_M_noblesoft.com)
Date: 12/30/04


Date: Thu, 30 Dec 2004 16:19:24 -0500

If there was no row that matched, the select would return an empty result
set not necessarily an error.

-- 
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
"Sirine83" <Sirine83@discussions.microsoft.com> wrote in message 
news:C294602A-4AA0-4D72-805E-F6EEF617430A@microsoft.com...
> Hi,
>
> I have a sql statement
>
> strSQL = "SELECT userName.Name, userName.ID,userName.Password FROM 
> userName
> WHERE userName.ID= '" & Request.QueryString("sn") & "' ;"
>
> If the where clause is not found or true, what would that statement 
> return?
>
> Basically I want to test if the where condition is found then continue 
> with
> the session otherwise end the session.
>
> Thanks,
> Sirine 


Relevant Pages

  • Re: leading spaces
    ... For the field that the SQL statement works when it is not empty, check out the field properties in the DB table. ... You might want to check your rules in the database. ... Trimfunction and it works in the textboxes but stores the extra space. ...
    (microsoft.public.frontpage.programming)
  • Re: Unreadable cd-r
    ... But when tried to record again, the cd seemd empty. ... If you closed the session, but not the disk, you would create a new session ... that CD into a player and let it read the TOC...then "manually" open ...
    (rec.audio.pro)
  • Re: leading spaces
    ... Thanks for your response. ... database doesn't return all the data without the server.HtmlEncode. ... > For the field that the SQL statement works when it is not empty, ... >> message I'm getting from the empty address field. ...
    (microsoft.public.frontpage.programming)
  • Re: finding a session that is running a sql
    ... I'm watching the executions in v$sqlarea ... growing but can't match it to a session while it's growing. ... what is the SQL statement that you are seeing ... cost based optimizer code. ...
    (comp.databases.oracle.server)
  • Re: Redemption Question - showaddressbook and saveas
    ... or whatever PB uses to denote an empty collection. ... Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm ... Msg = Session .GetDefaultFolder.Items.Add ...
    (microsoft.public.outlook.program_vba)