oracle数据库中多条件查询语句怎么写?
oracle数据库中多条件查询语句怎么写?
oracle数据库中多条件查询语句怎么写?
答案:这个问的不是很清楚,最简单的就是
select * from A where A.id=3333 and A.name='zh';
将多个条件用and连接就可以,如果有或者的条件用or就可以
其他:select * from tab_a where 1=1 and 2=2 and 3=3;
等等,用and连接查询条件。 select * from temp t where t.id=xxx and t.name='11' 可以加很多的条件的
select * from tab_a where 1=1 1=1 意思是where条件为真的1=2条件就为假的
select * from (select * from tab1 ) as t1,(select * from tab2 ) as t2 where t1.id=t2.id
and t1.name='' and t2.pa=''; 把select * from tab1和select * from tab2 看成两个表
上一个:有EXP导出的dmp和log文件,现在要在一台新机上重建数据库,请问要怎么做?oracle完全不懂,要有具体步骤
下一个:在.NET中使用c#连接Oracle数据库的类的写法