🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1074

Re: Searching Substrings in BLOB-Fields...

#1074
From: Steve Koterski
Date: Fri, 22 May 1998 00:00
36 lines
2142 bytes
On Fri, 22 May 1998 19:36:59 +0200, "Martin T. Thoma" <martin@radiok2r.de>
wrote:


>no it a Control from BCBuilder 3.0. But I thought it was a SQP Problem,
>because when I did the query, there was an error in the SQL-statement
>(because you can't search BLOBs with SQL).

A bit of clarification on that.

The ability to filter in an SQL statement based on the contents of a memo
column is implementation-specific. Some database systems will allow it,
others not, and still others partially with limitations.

Local SQL, what the BDE uses for dBASE and Paradox tables, falls into the
latter category. You can use the LIKE predicate in a WHERE clause to filter
based on the contents of a memo column.

  SELECT *
  FROM "Archive.dbf" A
  WHERE (A."Notes" LIKE "%C++Builder%")

However, in the 32-bit version of the BDE, you cannot also apply the SQL
function UPPER to the memo column. This precludes making the LIKE predicate
comparison case-insensitive, as you can with CHAR columns.

For other database systems that can be accessed directly by the BDE,
through ODBC, or the SQL Links, the documentation for the specific database
system used should be consulted to see whether and to what degree using a
memo column in this manner is supported.

**************************************************************************
Steve Koterski
INPRISE Corporation, Technical Publications
http://www.inprise.com/delphi
Technical Details
Message-ID: <3566e084.19372778@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35629487.4923@radiok2r.de> <3562BE97.A85B46A6@ibm.net> <3562EBD0.6787@radiok2r.de> <3563AEDF.887C119B@ibm.net> <3565B7BB.6346@radiok2r.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,311ffe2432b9f697
X-Google-Attributes: gidff5a1,public
From: koterski@borland.com (Steve Koterski)
Subject: Re: Searching Substrings in BLOB-Fields...
Date: 1998/05/22
Message-ID: <3566e084.19372778@forums.inprise.com>
X-Deja-AN: 355661226
Content-Transfer-Encoding: 7bit
References: <35629487.4923@radiok2r.de> <3562BE97.A85B46A6@ibm.net> <3562EBD0.6787@radiok2r.de> <3563AEDF.887C119B@ibm.net> <3565B7BB.6346@radiok2r.de>
Content-Type: text/plain; charset=us-ascii
Organization: INPRISE Corporation, Technical Publications
Mime-Version: 1.0
Reply-To: koterski@borland.com
Newsgroups: borland.public.vdbase.data.sql