🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.intrabuilder.data.sql
Article #44

SQL case sensitive??

#44
From: N. van Dijk
Date: Thu, 29 Jan 1998 00:00
25 lines
1227 bytes
Hi all,

I have a slight problem getting my query workt out all right:
I need to locate the fields in the database according to a keyword
provided by the user. Seem pretty simple I'd say. I first tried
embedding the keyword into the sql property of the query, something
like:
query.sql = "SELECT * FROM Prijsl.dbf WHERE (OMSCHRIJVI LIKE
'%pulse%')";
although this seems to work fine, all the fields with "Pulse" don't
get selected.

To bad, but nothing lost: Just use applyLocate(). However, applylocate
doesn't seem to work with the LIKE '%pulse%', because IB constantly
get back with a : "Unnallowed fhrase/keyword in statment: LIKE
'%pulse%'

Is there anyone who could help me outon this one? I always thought sql
was case INsensative, and I also thouh=ght applyLocat could use LIKE,
so what going wrong?

Thanks in advance,

Niels
Technical Details
Message-ID: <34d0f247.45133956@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 101d9a,7c235f5c1fa6801,start
X-Google-Attributes: gid101d9a,public
From: Niels@lx.student.wau.nl (N. van Dijk)
Subject: SQL case sensitive??
Date: 1998/01/29
Message-ID: <34d0f247.45133956@forums.borland.com>
X-Deja-AN: 320376325
Organization: None
Newsgroups: borland.public.intrabuilder.data.sql