1, Integer s=new Integer(9);
Integer t=new Integer(9);
Long u=new Long(9);
System.out.println(s.equals(t)); //true
System.out.println(s==t); //false
System.out.println(s.equals(u)); //false
System.out.println(s.equals(new Integer(9))); //true
2,
private static String s = "string";
public static void main(String a[]) {
String str = "string";
String t = "strin" + "g";
System.out.println(s == t); //true
System.out.println(s==str); //true
}
3, oracle 中,exits/in 区别:
select * from table where xx in (select xx from table2) ---》in 适合用于外表较大的情况下。
与上面等价
select *,(select distinct xx from table2) from table where table.xx = table2.xx
select * from table where xx exits(select xx from table2)--》exit适合用于内表较大的情况下。
与上面等价
for x in ( select * from t1 )
loop
if ( exists ( select null from t2 where y = x.x )
then
OUTPUT THE RECORD
end if
end loop
not in
和not exists 没有大小表之分,not exits效率高
4,数据库ORACLE的锁:
1,共享锁 2,独占锁 3,共享更新锁
分享到:
相关推荐
总结Python基础面试题全文共6页,当前为第1页。总结Python基础面试题全文共6页,当前为第1页。总结Python基础面试题 总结Python基础面试题全文共6页,当前为第1页。 总结Python基础面试题全文共6页,当前为第1页。 1...
java基础面试题WORD java基础面试题WORD java基础面试题WORD
Java基础面试题 .pdf
C++基础面试题,C++的基础扫盲,初学者对自己的摸底测试。
很全面的java基础面试题,给我一个你最常见到的runtime exception abstract class和interface有什么区别
java基础面试题
java常见基础面试题
编程基础面试题总结,希望大家喜欢。涉及编程面试的各个技术,很全面
java基础面试题
提供一些Java基础面试题,需要面试java类工作的面试宝典。
前端基础面试题.pdf
vue面试——2021最全面的vue基础面试题.pdf
经典的Java基础面试题集锦,想要给面试官留下一个懂技术的好印象,就该多看看常见的面试题
JAVA基础面试题(经典).doc
Java基础面试题整理(附答案)
Python基础面试题(33题).pdfpython面试
java基础面试题目大全, 合适JAVA面试的程序员, 而且这些都是很多公司里经常问到的问题, 也是最基本的。
Java基础面试题73道.docxJava基础面试题73道.docxJava基础面试题73道.docxJava基础面试题73道.docxJava基础面试题73道.docxJava基础面试题73道.docxJava基础面试题73道.docxJava基础面试题73道.docxJava基础面试题73...