Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Problem matching extented char '˚' degree sign
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 27th March 16:54
jay
External User
 
Posts: 1
Default Problem matching extented char '˚' degree sign



Hello,

I'm trying to select some records from an SQL 2000
database. The Select statement is as follows:
select * from test where field1 = '38˚'

No records are retuned even though there are some content
that matches the criteria.

How do I select records that contain the degree '˚' sign?
(I think ASCII code 176)

Thank you for all your help,
Jay
  Reply With Quote


  sponsored links


2 27th March 16:55
vishal parkar
External User
 
Posts: 1
Default Problem matching extented char '˚' degree sign



Jay,

select * from test where field1 = '38˚'
Above query will check exact match for the string 38˚ Hence if you do not have this string
in the column no records will be fetched.
If you want to retrieve rows for a particular column's value that contain ˚ then you will have
to use like operator.

Ex:

select * from test where field1 like '%˚%'

--
- Vishal
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666