Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<small>I have List of datasheet from main database now want to fetch data from database but only those sheet which are available in list of datasheet</small>
like list of datasheet is
datasheet[110_io,120_jo,110_ko,125_ji]


What I have tried:

I have tried with fetch data from database but it is fetching all data.
I want only datasheet which is available in list
Posted
Updated 29-May-18 3:19am

1 solution

Your question is vague, ambiguous, and most of all, unclear. I'm going to assume that "datasheet" is a column in your table.
SQL
select * 
from mytable 
where datasheet in ('110_io','120_jo','110_ko','125_ji')

Remember, the quality of the question dictates the quality of the answer.
 
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