I m using Oracle DB and I would like to write a SQL query that I could then call with JDBC. I m not very familiar with SQL so if someone can help me, that could be great ! Here is the problem. I have a table MY_TABLE wich contains a list of another tables, and I would like to keep only the nonempty tables and those that their names start by a particular string. The query I wrote is the following :
select TABLE_NAME
from MY_TABLE
where TABLE_NAME like %myString%
and (select count(*) from TABLE_NAME where rownum=1)<>0
order by TABLE_NAME;`
问题来自第二次选举考试,但我不知道我如何利用国家选举考试委员会的价值。
是否有人的想法?
感谢。
[补充评论]
实际上,我需要测试“无杀伤人员地雷”表中的五美元观点。 但是,如果我能找到另一个桌子,把所有这些观点也列入其中,并用一个NUM。 ROWS一栏也是完美的!