dbTalk Databases Forums  

Help : How to manage stars in database ?

comp.databases.object comp.databases.object


Discuss Help : How to manage stars in database ? in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MaisonBorniol
 
Posts: n/a

Default Help : How to manage stars in database ? - 11-03-2005 , 05:35 AM






All,

Any help would be gratefully appreciated.

I have this trouble :

In database in one column I have record like that :
000000001
0*6666**66
005555555

Stars could be anything between '0' and '9'

So, if I look for this id : 0166662066, it would be found in database
and retrieved.

Any idea, this stuff is driving me nuts.....


Thank a lot !


Reply With Quote
  #2  
Old   
Hieu Hoang
 
Posts: n/a

Default Re: Help : How to manage stars in database ? - 11-14-2005 , 12:11 PM






MaisonBorniol wrote:
Quote:
All,

Any help would be gratefully appreciated.

I have this trouble :

In database in one column I have record like that :
000000001
0*6666**66
005555555

Stars could be anything between '0' and '9'

So, if I look for this id : 0166662066, it would be found in database
and retrieved.

Any idea, this stuff is driving me nuts.....


Thank a lot !

in ms sql server, use the LIKE statement. can't remember syntax, but
similar to:

....
WHERE column1 LIKE '0[0-9]6666[0-9][0-9]66'
OR column1 = '005555555'

look it up in help & let me know


Reply With Quote
  #3  
Old   
MaisonBorniol
 
Posts: n/a

Default Re: Help : How to manage stars in database ? - 11-24-2005 , 03:20 AM



Thanks a lot.

It works fine under MSSQL. But what about Oracle ?

Is there a SQL proof syntaxe for this kind of stuff ?


Hieu Hoang a écrit :

Quote:
MaisonBorniol wrote:
All,

Any help would be gratefully appreciated.

I have this trouble :

In database in one column I have record like that :
000000001
0*6666**66
005555555

Stars could be anything between '0' and '9'

So, if I look for this id : 0166662066, it would be found in database
and retrieved.

Any idea, this stuff is driving me nuts.....


Thank a lot !


in ms sql server, use the LIKE statement. can't remember syntax, but
similar to:

...
WHERE column1 LIKE '0[0-9]6666[0-9][0-9]66'
OR column1 = '005555555'

look it up in help & let me know


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.