If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Passing Parameters to Informix SQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-05, 10:55
ldv71 ldv71 is offline
Registered User
 
Join Date: Nov 2005
Posts: 1
Passing Parameters to Informix SQL

I'm trying to pass a parameter to a WHERE clause in an Informix SQL statement. But I keep getting an error:

Example:

Select * from Clients
WHERE Client_ID = ?????

What does Informix expect in the "?????" area?
Reply With Quote
  #2 (permalink)  
Old 11-08-05, 14:16
June C. Hunt June C. Hunt is offline
Registered User
 
Join Date: Feb 2005
Posts: 43
What is the error that you are getting? How are you going about this? Is it a stored procedure? A prepared statement? Something else?

A very basic answer to your question would be to suggest that Informix is looking for a variable that has been defined and assigned a value that would be valid for comparison with Client_ID. Without more details about the situation and the error that you are getting, I can't give a more specific answer.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On