Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What kind of parameter is a parameter created for a WHERE clause of a SELECT statement? Is it an input or output parameter?

It neither puts in data nor takes out data.
Posted
Comments
Vedat Ozan Oner 28-Feb-14 2:54am    
can you explain your question with a sample code?

I won't call it as an input or output parameter. WHERE[^] statement needs a 'search condition'. This means that WHERE statement needs at least the name of field and the value to search inside this field. Follow the link for further information.
 
Share this answer
 
v2
Maciej is right, it is a search condition, but...if you write a SELECT into a stored procedure, it has to be an INPUT parameter: it can't be an OUT parameter, because the SELECT needs to get the information from it in order to execute, not load it with data as a result of the execution.

So if you must give it a "direction", it's an input parameter! :laugh:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900