🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #160

Re: (Q): SQL-Queries

#160
From: Thomas Minor
Date: Mon, 20 Oct 1997 00:00
46 lines
2052 bytes
Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------C59F55142A93F9295D4D7531
Content-Type: text/plain; charset=us-ascii
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

Heinz A. Krebs Dipl.-Ing. wrote:

> 1. how can i make a case-insensitive selection? if i make the
> following:
>      SELECT titel FROM database WHERE titel LIKE '%apple%'
>    i don't get the entries with 'Apple', but i want them all!

Why don't you try to use the following syntax (did the job on InterBase
SQL Server) :

  SELECT titel FROM database
    WHERE UPPER(titel) LIKE UPPER("%apple%");

The UPPER("%apple%") part of course makes more sence when using it in a
parameter form like UPPER(:Item)...


regards,

Thomas Minor

--------------C59F55142A93F9295D4D7531
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Visitenkarte f�r Thomas Minor
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Thomas Minor
n:              Minor;Thomas
org:            Dr. Materna GmbH
email;internet: Thomas.Minor@materna.de
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
end:            vcard


--------------C59F55142A93F9295D4D7531--
Technical Details
Message-ID: <344B7918.13D4757F@materna.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <344B1EAD.E25@fbch.tuwien.ac.at>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: ffff5,c6b02df51994e2b0
X-Google-Attributes: gidffff5,public
X-Google-Thread: 11301e,c6b02df51994e2b0
X-Google-Attributes: gid11301e,public
X-Google-Thread: 10de66,c6b02df51994e2b0
X-Google-Attributes: gid10de66,public
From: Thomas Minor <Thomas.Minor@materna.de>
Subject: Re: (Q): SQL-Queries
Date: 1997/10/20
Message-ID: <344B7918.13D4757F@materna.de>
X-Deja-AN: 282731295
References: <344B1EAD.E25@fbch.tuwien.ac.at>
To: "Heinz A. Krebs Dipl.-Ing." <hkrebs@fbch.tuwien.ac.at>
X-Priority: 3 (Normal)
Organization: Dr. Materna GmbH
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.sqlservers,microsoft.public.sqlserver.programming