πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Query on memo fields

#1210
From: Nedim Buyukmihci
Date: Tue, 07 Apr 1998 00:00
22 lines
1143 bytes
VdB 7.01 (b1419)

Anybody know how to do a query on memo fields and circumvent the
problem of case of the string being searched?

For example:

  pcField is the chosen field
  pcSearchValue is the string to search

  insert into '<table1>' select * from '<table2>' where
upper(&pcField.) like '%' + :pcSearchValue + '%'

The above works well if the field is Char. But, if the field is a memo
field, you get the error: Database Engine Error: Type mismatch in
expression as long as you try to convert the field to upper in the
statement.

With DML, you could filter on upper(<memo>). What do we do with OODML?

Ned
Technical Details
Message-ID: <352a7cbe.2945432@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: ff5a1,f2379775633d4b82,start
X-Google-Attributes: gidff5a1,public
From: ncbuyukmihci@ucdavis.edu (Nedim Buyukmihci)
Subject: Query on memo fields
Date: 1998/04/07
Message-ID: <352a7cbe.2945432@forums.borland.com>
X-Deja-AN: 341797719
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: PigByte DataοΏ½
Mime-Version: 1.0
Reply-To: ncbuyukmihci@ucdavis.edu
Newsgroups: borland.public.vdbase.data.sql