04 2013 档案

SQL各种连接查询详解(左连接、右连接..)
摘要:一、交叉连接(crossjoin)交叉连接(crossjoin):有两种,显式的和隐式的,不带on子句,返回的是两表的乘积,也叫笛卡尔积。例如:下面的语句1和语句2的结果是相同的。语句1:隐式的交叉连接,没有crossjoin。selecto.id,o.order_number,c.id,c.namefromorderso,customerscwhereo.id=1;语句2:显式的交叉连接,使用crossjoin。selecto.id,o.order_number,c.id,c.namefromordersocrossjoincustomerscwhereo.id=1;语句1和语句2的结果是相 阅读全文

posted @ 2013-04-04 11:16 神武大王 阅读(84) 评论(0) 推荐(0)

Spring ClassPathXmlApplicationContext和FileSystemXmlApplicationContext
摘要:先说:ClassPathXmlApplicationContext这个类,默认获取的是WEB-INF/classes/下的路径,也就是在myeclipse的src下的路径,所以用这个是获取不到WEB-INF下的配置文件的...下面是几个用法,引src下的一个文件,有以下几种方式Java代码BeanFactoryac=newClassPathXmlApplicationContext("applicationContext.xml");BeanFactoryac=newClassPathXmlApplicationContext("classpath:applica 阅读全文

posted @ 2013-04-02 13:54 神武大王 阅读(108) 评论(0) 推荐(0)

导航