Solved

Query parameters

Posted on 1998-11-01
1
246 Views
Last Modified: 2010-04-06
How can I create and set query parameters at run-time (thus, without use the parameters editor) ?

                        Tanks in advance.
0
Comment
Question by:oberdan
1 Comment
 
LVL 4

Accepted Solution

by:
dwwang earned 100 total points
ID: 1345284
You can just simply write the SQL statement with the ':' to create and use parameters.

query1.sql.text:='Select * from my table where myfield1=:myvalue1'

query1.parambyname('myvalue1').asstring:='xxxxx';
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi component that can load a DLL in design time? 8 53
Using idhttp to login to instagram 2 76
Intraweb download file link ? 1 110
delphi parse string to params 3 100
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

22 Experts available now in Live!

Get 1:1 Help Now