Solved

Ignoring case in query

Posted on 1999-01-13
5
211 Views
Last Modified: 2010-04-06
I want to ignor case in query for example :

Select * from phone where name like 'motaz%';

I want this query select records like 'Motaz', 'MOTAZ' and 'motaz'

I use TQuery in Delphi 3
0
Comment
Question by:Motaz
  • 3
  • 2
5 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 1356329
Hi Motaz,

what database do you use?

meikl
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 1356330
Hi again Motaz,

if your Database Oracle or Interbase then you can use this:

Select * from phone where upper(name) like upper('motaz%')

meikl
0
 
LVL 7

Author Comment

by:Motaz
ID: 1356331
I use Pradox 7
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 10 total points
ID: 1356332
Hi Motaz,

This works in paradox also :

     Select * from phone where upper(name) like upper('motaz%')

meikl
0
 
LVL 7

Author Comment

by:Motaz
ID: 1356333
Thanks meikl

Motaz

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now