??xml version="1.0" encoding="utf-8" standalone="yes"?> 1. 关于左右表的概念。左表指的是在SQL语句中排在left join左边的表Q右表指的是排在left join双的表?br /> 2. 在拼成的大表中,左表排在左边Q右表排在右辏V?br /> 3. on条g语句最好用=号对两表相应的主外键q行q接。当Ӟ也可以用其他操作W,?gt;, <, 来连接两表的M字段Q此时的关系非常复杂,q接后的记录C随之而变得不定。如果在一些特D的场合中需要用到这U方式,必须通过单的实例加以认Q否则,q接l果很可能不是我们所惌的!
inner join
格式Qselect * from 部门 inner join l织 on 部门.l织~号 = l织.~号 目的Q将两表中符合on条g的所有记录都扑և来?/p>
规律Q?/p>
1. 拼出的大表记录不会增加?br /> 2. 如果左边与右表的关系是一对多的关p,在选出的Q一记录中,假若双有多个记录与其对应,那么Q连接后的左表,主键不再唯一?/p>
典型应用Q将存在多关pȝ引用表放在左表,存在一关系的被引用表放在右表,通过=号将d键进行连接,通过对右表设定过滤条Ӟ选出相应的且主键唯一的左表记录?/p>
备注Qinner join 是默认的q接方式Q可~写为join?/p>
转化为where子句Q?/p>
select * from 部门, l织 where 部门.l织~号 = l织.~号
left outter join
格式: select * from 部门 left join l织 on 部门.l织~号 = l织.~号 格式: select * from l织 left join 部门 on l织.~号 = 部门.l织~号 目的Q将左表的所有记录列出,双中只要符合on条g的,与左表记录相拼合Q不W合条g的,填以null倹{?/p>
规律Q?/p>
1. 选出所有符合条件的左表Q如果左边与双的关pL一对一的关p,则拼成的大表记录不会改变?br /> 如果左边与右表的关系是多对一的关p,则拼成的大表记录也不会改变?br /> 如果左边与右表的关系是一对多的关p,则拼成的大表记录会增加。对于每一h一对多关系的左表记录,如果左表1QN与右表对应,那么会多出N-1条记录。例如,如果左表W一条记?Q?对应于右表,多出2条记录。如果左表第二条记录1Q?对应于右表,则再多出1条记录。这Pd多出3条记录。其他类推?br /> 2. 如果左边与右表的关系是一对多的关p,在选出的Q一记录中,假若双有多个记录与其对应,那么Q连接后的左表,主键不再唯一?br /> 3. 如果左边与右表的关系是一对多的关p,对于左表M记录Q如果右表没有记录与其相对应Q则全部填以null倹{?/p>
典型应用Q将存在多关pȝ引用表放在左表,存在一关系的被引用表放在右表,通过对右表设定过滤条Ӟ选出相应的且主键唯一的左表记录?/p>
备注Qleft outter join可用left join代替。在有些数据库中Q如HSqlDb, 只能使用left join而不能用left outter join?/p>
转化为where子句Q?/p>
select * from 部门, l织 where 部门.l织~号 = l织.~号
格式: select * from 部门 right join l织 on 部门.l织~号 = l织.~号 格式: select * from l织 right join 部门 on 部门.l织~号 = l织.~号 目的Q将双的所有记录列出,左表中只要符合on条g的,与右表记录相拼合Q不W合条g的,填以null倹{?/p>
规律Q?与left outter join相反) 典型应用Q可转化成left outter join。例?/p>
select * from l织 right join 部门 on 部门.l织~号 = l织.~号 备注Qright outter join可用right join代替。在有些数据库中Q如HSqlDb, 没有实现right join功能?/p>
转化为where子句Q?/p>
select * from 部门, l织 where 部门.l织~号 = l织.~号
4. on条g语句不能省略?br /> 5. 可以q锁使用joinQ每ơ用join都o另一表与当前的表或连接的l果相连接?/p>
在下文中Q用C两个表,"部门"表与"l织"表,其中Q?部门"表有一名ؓ"l织~号"的外键,指向"l织"表中的主?~号"?/p>
right outter join
?br /> select * from 部门 left join l织 on 部门.l织~号 = l织.~号
的效果一?/p>
1, 下蝲j2sdk-linux-i386-rpm.bin
2Q运行命令:chmod +x j2sdk-linux-i386-rpm.bin Q修Ҏ可执行权限)
3Q执?FONT style="BACKGROUND-COLOR: #d3d3d3" color=#0000ff>Q?/ j2sdk-1_3_1-linux-i386-rpm.bin (执行后生成rpm安装包j2sdk-linux-i386.rpm)
4Q?FONT style="BACKGROUND-COLOR: #d3d3d3" color=#0000ff>rpm -ivh j2sdk-1_3_1-linux-i386-rpm (安装成功后,jdk被安装?usr/java/目录?
5, vi当前用户Q例root目录下)?bash_profile文gQ添加内容如下:
6Qjava命oQ验证环境是否配|成功?BR>
TOMCAT的配|:
1Q下载jakarta-tomcat-5.0.28.tar.gz
2Q?tar zxvf jakarta-tomcat.tar.gz
3Q?转换路径cd到tomcat/bin目录?FONT style="BACKGROUND-COLOR: #d3d3d3" color=#0000ff>Q?/startup.sh (启动tomcat)
4Q?在ie览器输?A href="http://servername:port">http://servername:port Q验证tomcat是否启动成功Q?BR>
Attribute | Description |
---|---|
clientAuth |
Set this value to true if you want Tomcat to require all SSL clients to present a client Certificate in order to use this socket. Set this value to want if you want Tomcat to request a client Certificate, but not fail if one isn't presented. |
keystoreFile |
Add this attribute if the keystore file you created is not in the default place that Tomcat expects (a file named .keystore in the user home directory under which Tomcat is running). You can specify an absolute pathname, or a relative pathname that is resolved against the $CATALINA_BASE environment variable. |
keystorePass |
Add this element if you used a different keystore (and Certificate) password than the one Tomcat expects (changeit ). |
keystoreType |
Add this element if using a PKCS12 keystore. The valid values are JKS and PKCS12 . |
sslProtocol |
The encryption/decryption protocol to be used on this socket. It is not recommended to change this value if you are using Sun's JVM. It is reported that IBM's 1.4.1 implementation of the TLS protocol is not compatible with some popular browsers. In this case, use the value SSL . |
ciphers |
The comma separated list of encryption ciphers that this socket is allowed to use. By default, any available cipher is allowed. |
algorithm |
The X509 algorithm to use. This defaults to the Sun implementation (SunX509 ). For IBM JVMs you should use the value IbmX509 . For other vendors, consult the JVM documentation for the correct value. |
truststoreFile |
The TrustStore file to use to validate client certificates. |
truststorePass |
The password to access the TrustStore. This defaults to the value of keystorePass . |
truststoreType |
Add this element if your are using a different format for the TrustStore then you are using for the KeyStore. The valid values are JKS and PKCS12 . |