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 2000 Forums
 Transact-SQL (2000)
 Select

Author  Topic 

tedew
Starting Member

22 Posts

Posted - 2006-03-28 : 10:37:53
hello,
I have a problem with a select order. I have a table with a one column and in this column are data :

we234
qw12
12
345
55tt
12345678990
4
e
r

And how can I select only this record which contains only digits ??


bye

nr
SQLTeam MVY

12543 Posts

Posted - 2006-03-28 : 10:44:43
selcet *
from tbl
where col not like '%[^0-9]%'


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -