如何使用单个查询获取所选数据库(列表中可用) [英] How do I fetch selected database (which is available in list ) by using single queries
本文介绍了如何使用单个查询获取所选数据库(列表中可用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<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]
我尝试了什么:
我尝试过从数据库中获取数据,但它正在获取所有数据。
我只想要列表中的数据表
推荐答案
你的问题含糊不清,最模糊,最重要的是,不清楚。我将假设数据表是表格中的一列。
Your question is vague, ambiguous, and most of all, unclear. I'm going to assume that "datasheet" is a column in your table.
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.
这篇关于如何使用单个查询获取所选数据库(列表中可用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文