Re: How ">=" Work on Varchar field?
From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 11/02/04
- Next message: Uri Dimant: "Re: is this bad?"
- Previous message: Uri Dimant: "Re: Import Data"
- In reply to: Prabhat: "How ">=" Work on Varchar field?"
- Next in thread: Prabhat: "Re: How ">=" Work on Varchar field?"
- Reply: Prabhat: "Re: How ">=" Work on Varchar field?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 09:32:10 -0500
No, this has absolutely nothing to do with ASCII.
It finds all the values that are alphabetically "greater" than 'value1' e.g.
value2, valve, veil but not val or vail.
Whether it will treat value1 = Value1 depends on the collation of the column
or database, same goes for accented characters or other symbols outside the
general set of alphanumerics.
-- http://www.aspfaq.com/ (Reverse address to reply.) "Prabhat" <not_a_mail@hotmail.com> wrote in message news:#wLgPgOwEHA.3012@TK2MSFTNGP10.phx.gbl... > Hi All, > > Suppose I will use > Where col1 >= 'value1' > > and the col1 is a varchar - Indexed column, then how does the >= works on > that Case? > > Does that take the sum of the ascii value of all characters of value1 and > find all rows with > value then the sum and display, or how? > > Thanks > Prabhat > >
- Next message: Uri Dimant: "Re: is this bad?"
- Previous message: Uri Dimant: "Re: Import Data"
- In reply to: Prabhat: "How ">=" Work on Varchar field?"
- Next in thread: Prabhat: "Re: How ">=" Work on Varchar field?"
- Reply: Prabhat: "Re: How ">=" Work on Varchar field?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|