🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11308

LIKE command with NUMERIC field?

#11308
From: Kevin Naidoo
Date: Wed, 27 Nov 2002 12:20
20 lines
1631 bytes
Hi there,

A few questions about LIKE and NUMERIC fields :-

1) We currently use LIKE with some of our NUMERIC fields. I know this is not
how it should be used, so can anyone give a method to do such comparisons
with NUMERIC fields? I need to be able to find NUMERICs starting with say 10
(like 10, 101, 10201 etc.).

2) This used to work fine with IB 5.6. I've just upgraded to IB 6.5 and now
the problem seems to be that I need to include a space in front of the value
I'm looking for. eg. LIKE ' 10%' (LIKE '10%' worked fine in IB5.6). Negative
values work fine eg. LIKE '-10%'. Any ideas about this? (I tried a LIKE
'+10%' to no avail.)

Hope my questions make sense.

Regards,
Kevin Naidoo
M.Ying and Associates
Technical Details
Message-ID: <3de4b7fe@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114a0e,9a9504f897cb3591,start
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-11-27 04:29:53 PST
From: "Kevin Naidoo" <kev@mysoft.co.za>
Newsgroups: borland.public.interbase.sql
Subject: LIKE command with NUMERIC field?
Date: Wed, 27 Nov 2002 14:20:47 +0200
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 66.8.38.180
Message-ID: <3de4b7fe@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038399486 66.8.38.180 (27 Nov 2002 04:18:06 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail