If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > clike

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-01-03, 06:23
trilly trilly is offline
Registered User
 
Join Date: Aug 2003
Location: Vicenza(I)
Posts: 21
clike

hello
in mysql exist the operator clike that there is similar of like but there isn't key-sensitive. In oracle there is a similar operator?

And there is an operator similar of the function iif of access?

Thak you Elisa
Reply With Quote
  #2 (permalink)  
Old 09-01-03, 06:31
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: clike

Quote:
Originally posted by trilly
hello
in mysql exist the operator clike that there is similar of like but there isn't key-sensitive. In oracle there is a similar operator?

And there is an operator similar of the function iif of access?

Thak you Elisa
Do you mean case-sensitive? No, in Oracle you would have to use UPPER or LOWER to force case, e.g.

WHERE UPPER(name) LIKE 'SMITH%'

What does IIF do? I'd guess it is probably something like Oracle's DECODE:

SELECT DECODE(status,1,'new',2,'old','unknown') FROM mytable;

This means:
Check value of mytable.status;
If it is 1 then return 'new'
If it is 2 then return 'old'
For any other values return 'unknown'

(Note: DECODE is not limited to 3 return values as in my example)
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On