当前位置: 编程技术>移动开发
本页文章导读:
▪Java中的GOTO话语 Java中的GOTO语句
public class Main {
public static void main(String[] args) {
_goto: for (int i = 0; i <= 3; i++) {
System.out.println("I=" + i);
for (int j = 0; j <= 5; j++) {
if (j > 2)
continue _goto;
System.out.........
▪ 小弟我要发泄。 我要发泄。。。。
我发现现在很多人,看完技术博客很少回复。。。。或者丢了一句垃圾
人家写技术博客,有一部分是为了自己写的,给你们看了,而且还免费看知识,你不表达感谢
.........
▪ 透过START WITH 和CONNECT BY PRIOR遍历上级父节点(上级目录) 通过START WITH 和CONNECT BY PRIOR遍历上级父节点(上级目录)
向上遍历父节点SELECT *FROM (SELECT * FROM m_comn_project_emp t1 WHERE t1.project_id = 'Project1') t2START WITH t2.child_id = 'D'CONNECT BY PRIOR.........
[1]Java中的GOTO话语
来源: 互联网 发布时间: 2014-02-18
Java中的GOTO语句
public class Main { public static void main(String[] args) { _goto: for (int i = 0; i <= 3; i++) { System.out.println("I=" + i); for (int j = 0; j <= 5; j++) { if (j > 2) continue _goto; System.out.println("------J=" + j); } } } }
一般的 continue语句都是跳出当前循环,但是这个会跳出到标记_goto的位置。
[2] 小弟我要发泄。
来源: 互联网 发布时间: 2014-02-18
我要发泄。。。。
也有iteye支持那些人的做法吧
我发现现在很多人,看完技术博客很少回复。。。。或者丢了一句垃圾
人家写技术博客,有一部分是为了自己写的,给你们看了,而且还免费看知识,你不表达感谢
却还丢下一句素质很低的话,我真是受不了
如果这样的话,那我干脆点,直接放到草稿箱中,一篇也不让别人看,大家都这样做的话
技术论坛,技术博客将永远的要靠国外了
大侠们,大牛们,别认为别人都为了你们服务的,你们虽然牛,但也在不断积累查看别人写的文章才成长起来的
如果没有别人的文章,那么就要花钱喽
1 楼
jssay
2012-04-20
是这样的,正所谓林子大了什么鸟都有,你无法改变别人,只能学会平静地对待,否则受伤的是你自己!
2 楼
hyneng
2012-04-21
真被隐藏了
3 楼
chenhailong
2012-04-23
哈哈 我服了
我这篇文章怎么了
被隐藏了
我这篇文章怎么了
被隐藏了
4 楼
hyneng
2012-04-23
chenhailong 写道
哈哈 我服了
我这篇文章怎么了
被隐藏了
我这篇文章怎么了
被隐藏了
也有iteye支持那些人的做法吧
[3] 透过START WITH 和CONNECT BY PRIOR遍历上级父节点(上级目录)
来源: 互联网 发布时间: 2014-02-18
通过START WITH 和CONNECT BY PRIOR遍历上级父节点(上级目录)
向上遍历父节点
SELECT *
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = 'Project1') t2
START WITH t2.child_id = 'D'
CONNECT BY PRIOR t2.parent_id = t2.child_id向上遍历子节点
SELECT *
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = 'Project1') t2
START WITH t2.child_id = 'B'
CONNECT BY PRIOR t2.child_id = t2.parent_id 向上遍历父节点不包含头节点
SELECT t2.member_id AS member_id
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = :projectid) t2
WHERE LEVEL > 1
START WITH t2.member_id = :memberid
CONNECT BY PRIOR t2.manager_id = t2.member_id 向上遍历子节点不包含头节点
SELECT t2.member_id AS member_id
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = :projectid) t2
WHERE LEVEL > 1
START WITH t2.member_id = :memberid
CONNECT BY PRIOR t2.member_id = t2.manager_id
向上遍历父节点
SELECT *
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = 'Project1') t2
START WITH t2.child_id = 'D'
CONNECT BY PRIOR t2.parent_id = t2.child_id向上遍历子节点
SELECT *
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = 'Project1') t2
START WITH t2.child_id = 'B'
CONNECT BY PRIOR t2.child_id = t2.parent_id 向上遍历父节点不包含头节点
SELECT t2.member_id AS member_id
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = :projectid) t2
WHERE LEVEL > 1
START WITH t2.member_id = :memberid
CONNECT BY PRIOR t2.manager_id = t2.member_id 向上遍历子节点不包含头节点
SELECT t2.member_id AS member_id
FROM (SELECT *
FROM m_comn_project_emp t1
WHERE t1.project_id = :projectid) t2
WHERE LEVEL > 1
START WITH t2.member_id = :memberid
CONNECT BY PRIOR t2.member_id = t2.manager_id
最新技术文章: