Solved

How to write this SQL?

Posted on 2001-08-21
7
163 Views
Last Modified: 2010-04-06
Hi all,

The DB has a color field.
When user enters "RED" at a TEdit, then will return some records.
Their fields value is "RED;Blue;Black;" or "RED" or "RED;Blue;".....

How to write this SQL?

Regards, supwang
0
Comment
Question by:SupWang
  • 3
  • 2
  • 2
7 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 30 total points
ID: 6408854
select * from atable where colorfield like :color

use this code

query1.close;
query1.parambyname('color').AsString := '%'+edit1.text+'%'; //containing or
//query1.parambyname('color').AsString := edit1.text+'%'; //starting with
query1.open;

meikl ;-)

0
 
LVL 2

Author Comment

by:SupWang
ID: 6408904
Hi meikl,
Why German don?t kill more Israelite? The Israelite is very bad.
Now I very happy to see they be bombed. Those Palestinian hero...
KZ
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6408954
SupWang what the fu** are You talking about, this site is about programming not politics (I didn't see any politics topic around here)
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 27

Expert Comment

by:kretzschmar
ID: 6408959
hmm,
i didn't have anything against the israelite,
and the holocaust was before my lifetime,
even if i don't understand their doing at this time

this isn't a theme for this q

meikl ;-)
0
 
LVL 21

Expert Comment

by:ziolko
ID: 6408998
SupWang meikl is from Germany I'm from Poland this means he should kill me too???
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6409027
i don't want to kill anyone
0
 
LVL 2

Author Comment

by:SupWang
ID: 6409049
No. No.  
I means israelite is very bad. always attack their neighbor.
I am a Chinese.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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