Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 champ varchar

Author  Topic 

wided
Posting Yak Master

218 Posts

Posted - 2011-02-28 : 02:49:39
Bonjour

j'ai un champ en varchar, le contenu de ce champ est à 90% en chiffre sauf quelqes champs
es ce qu'il y'a une requte qui me permet de les identifier:
Exemple
Champ1 = 1200, 5600, 7400, 1F05, 560C, 1610.....

Je voudrais extraire uniquement les champs avec les lettres dedans
Merci
Wided

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-02-28 : 02:52:27
wish i could understand this !!

Cheers
MIK
Go to Top of Page

wided
Posting Yak Master

218 Posts

Posted - 2011-02-28 : 03:01:00
I want to extract the fields where there is letters in the field
Go to Top of Page

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-02-28 : 05:02:48
ummmm, now it would make sense if you translate the original post (into English )


Cheers
MIK
Go to Top of Page

wided
Posting Yak Master

218 Posts

Posted - 2011-02-28 : 05:31:07
(theme message in english)
Hello

I have a varchar field, the content of this field is 90% by number, except some fields
there 's a request, which allows me to identify:
Example
Field1 = 1200, 5600, 7400, 1F05, 560C, 1610 .....

I would like to extract only the fields with letters (exemple 1F05 and 560C)
Thank you
Wided
Go to Top of Page

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-02-28 : 07:22:51
I would like to extract only the fields with letters (exemple 1F05 and 560C) Check this

Select * from TableName
Where Field1 like '%[a-z]%'

Cheers
MIK
Go to Top of Page

wided
Posting Yak Master

218 Posts

Posted - 2011-02-28 : 08:40:48
Thanks MIk 2008
it is ok
Go to Top of Page

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-03-01 : 10:48:15
No problem

Cheers
MIK
Go to Top of Page
   

- Advertisement -