Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am loading data from a database but since there is alot of records i want to filter the records that contain a symbol.
The following symbols i want to exclude:
*, /, #
I tried the following:
[Example]:
LOAD
[KeyPart]
SQL SELECT
FROM Database
WHERE [KeyPart] NOT LIKE '*'
Try something like this:
[Example]:
LOAD
[KeyPart] ;
SQL SELECT [KeyPart]
FROM Database
WHERE Not (Instr([KeyPart], '*') Or Instr([KeyPart], '/') Or Instr([KeyPart], '#'));
Edit: Corrected some basics
try this
[Example]:
LOAD
[KeyPart]
WHERE not match([KeyPart], '*','/','#');
SQL SELECT
FROM Database;
I am using an Informix database and with both solutions I get an OCBD db error
Try with this
[Example]:
LOAD
[KeyPart]
SQL SELECT
FROM Database
WHERE [KeyPart] NOT LIKE '\*'
Can you tell me these symbols are part of a string? if so use WHERE [KeyPart] NOT LIKE '%\*%'