|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Case insensitive LIKE for BLOB field??
Thankyou for considering my question.
I have a table that includes some memo text stored in a BLOB field. I need to select rows from this table where the TEXT BLOB FIELD contains a keyword the user has entered, this works fine using the code Code:
... WHERE MYMEMODATA LIKE '%keyword%' How can I make this where clause case insensitive?
__________________
Beware of a programmer with a screwdriver! |
|
#2
|
||||
|
||||
|
Quote:
Maybe you could try this: WHERE MYMEMODATA LIKE 'keyword' OR 'KEYWORD' ![]() |
|
#3
|
|||
|
|||
|
Quote:
This will work for basic ASCII characters: Code:
... WHERE MYMEMODATA CONTAINING 'keyword' If your blobs contain national characters, you would have to write UDF. |
|
#4
|
|||
|
|||
|
Quote:
It is not complete , you would have to write:WHERE mymemo LIKE '%keyword%' OR mymemo LIKE '%Keyword%' OR mymemo LIKE '%KEyword%' OR mymemo LIKE '%KEYword%' OR mymemo LIKE '%kEyword%' OR ... |
|
#5
|
||||
|
||||
|
Quote:
Yes this does it well!!! The blobs don't contain national characters at this stage so it will do the job just fine. Thankyou. |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Case insensitive LIKE for BLOB field?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|