摘要:
使用 EXISTS 方式 select * from A a where EXISTS(select b.mainInfoId from B b where b.mainInfoId=a.mainInfoId); 使用 in 方式select * from A where id in (select 阅读全文
摘要:
sql使用case when then 判断某字段是否为null没效果 CASE columnName WHEN null THEN 0 ELSE columnName END虽然columnName 为空,但结果不为0,结果应该为0才对。 正确写法: CASE WHEN columnName is 阅读全文
摘要:
错误信息:object is not an instance of declaring class 说明Class没有实例化;解决办法:由于没有实力化可以有如下两种方法:1、反射方法定义成为static的,故被反射类就不需要实例化;2、method.invoke(class.newInstance( 阅读全文