Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Exact not behaving 1

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I am attempting to create a fairly complex query but I am bogged down with some simple syntax.
Why is the following pulling D114, D114A, D114B etc. and anything else starting with D114 from the table?
Code:
SET EXACT ON
select code, qty, each;
from dda;
where code="D114"
I want the occurences of exactly "D114" only.

Keith
 
Rather than using SET ANSI, in a case like this, you'd be better off using the == operator:

Code:
select code, qty, each;
from dda;
where code=="D114"

That way, you won't change the behavior of any code outside this query.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top