Solved

Ignoring case in query

Posted on 1999-01-13
5
213 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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