cmd_sqlplus 中的break命令
cmd_sqlplus 中的break命令 ,注意break 是sqlplus命令,不是sql語句。
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
10 7839 KING 5000
10 7934 MILLER 1300
20 7566 JONES 2975
20 7902 FORD 3000
20 7876 ADAMS 1100
20 7369 SMITH 800
20 7788 SCOTT 3000
30 7521 WARD 1250
30 7844 TURNER 1500
30 7499 ALLEN 1600
30 7900 JAMES1 950
30 7698 BLAKE 2850
30 7654 MARTIN 1250
14 rows selected.
SQL> break on deptno skip 1
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
7839 KING 5000
7934 MILLER 1300
20 7566 JONES 2975
7902 FORD 3000
7876 ADAMS 1100
7369 SMITH 800
7788 SCOTT 3000
30 7521 WARD 1250
7844 TURNER 1500
7499 ALLEN 1600
7900 JAMES1 950
7698 BLAKE 2850
7654 MARTIN 1250
SQL> break on deptno skip 2
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
7839 KING 5000
7934 MILLER 1300
20 7566 JONES 2975
7902 FORD 3000
7876 ADAMS 1100
7369 SMITH 800
7788 SCOTT 3000
30 7521 WARD 1250
7844 TURNER 1500
7499 ALLEN 1600
7900 JAMES1 950
7698 BLAKE 2850
7654 MARTIN 1250
14 rows selected.
SQL> break on deptno
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
7839 KING 5000
7934 MILLER 1300
20 7566 JONES 2975
7902 FORD 3000
7876 ADAMS 1100
7369 SMITH 800
7788 SCOTT 3000
30 7521 WARD 1250
7844 TURNER 1500
7499 ALLEN 1600
7900 JAMES1 950
7698 BLAKE 2850
7654 MARTIN 1250
14 rows selected.
SQL> clear break
breaks cleared
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
10 7839 KING 5000
10 7934 MILLER 1300
20 7566 JONES 2975
20 7902 FORD 3000
20 7876 ADAMS 1100
20 7369 SMITH 800
20 7788 SCOTT 3000
30 7521 WARD 1250
30 7844 TURNER 1500
30 7499 ALLEN 1600
30 7900 JAMES1 950
30 7698 BLAKE 2850
30 7654 MARTIN 1250
14 rows selected.
SQL>
注意:sqlplus中的一些命令,貌似在PLSQL Developer的 command windows 視窗中,不起作用。下面,我在PLSQL Developer 的command windows 中 做了一下這個實驗。
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
DEPTNO EMPNO ENAME SAL
------ ----- ---------- ---------
10 7782 CLARK 2450.00
10 7839 KING 5000.00
10 7934 MILLER 1300.00
20 7566 JONES 2975.00
20 7902 FORD 3000.00
20 7876 ADAMS 1100.00
20 7369 SMITH 800.00
20 7788 SCOTT 3000.00
30 7521 WARD 1250.00
30 7844 TURNER 1500.00
30 7499 ALLEN 1600.00
30 7900 JAMES1 950.00
30 7698 BLAKE 2850.00
30 7654 MARTIN 1250.00
14 rows selected
SQL> break on
SQL> break on deptno
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
DEPTNO EMPNO ENAME SAL
------ ----- ---------- ---------
10 7782 CLARK 2450.00
10 7839 KING 5000.00
10 7934 MILLER 1300.00
20 7566 JONES 2975.00
20 7902 FORD 3000.00
20 7876 ADAMS 1100.00
20 7369 SMITH 800.00
20 7788 SCOTT 3000.00
30 7521 WARD 1250.00
30 7844 TURNER 1500.00
30 7499 ALLEN 1600.00
30 7900 JAMES1 950.00
30 7698 BLAKE 2850.00
30 7654 MARTIN 1250.00
14 rows selected
SQL> break on deptno skip 222
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
DEPTNO EMPNO ENAME SAL
------ ----- ---------- ---------
10 7782 CLARK 2450.00
10 7839 KING 5000.00
10 7934 MILLER 1300.00
20 7566 JONES 2975.00
20 7902 FORD 3000.00
20 7876 ADAMS 1100.00
20 7369 SMITH 800.00
20 7788 SCOTT 3000.00
30 7521 WARD 1250.00
30 7844 TURNER 1500.00
30 7499 ALLEN 1600.00
30 7900 JAMES1 950.00
30 7698 BLAKE 2850.00
30 7654 MARTIN 1250.00
14 rows selected
SQL>
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
10 7839 KING 5000
10 7934 MILLER 1300
20 7566 JONES 2975
20 7902 FORD 3000
20 7876 ADAMS 1100
20 7369 SMITH 800
20 7788 SCOTT 3000
30 7521 WARD 1250
30 7844 TURNER 1500
30 7499 ALLEN 1600
30 7900 JAMES1 950
30 7698 BLAKE 2850
30 7654 MARTIN 1250
14 rows selected.
SQL> break on deptno skip 1
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
7839 KING 5000
7934 MILLER 1300
20 7566 JONES 2975
7902 FORD 3000
7876 ADAMS 1100
7369 SMITH 800
7788 SCOTT 3000
30 7521 WARD 1250
7844 TURNER 1500
7499 ALLEN 1600
7900 JAMES1 950
7698 BLAKE 2850
7654 MARTIN 1250
SQL> break on deptno skip 2
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
7839 KING 5000
7934 MILLER 1300
20 7566 JONES 2975
7902 FORD 3000
7876 ADAMS 1100
7369 SMITH 800
7788 SCOTT 3000
30 7521 WARD 1250
7844 TURNER 1500
7499 ALLEN 1600
7900 JAMES1 950
7698 BLAKE 2850
7654 MARTIN 1250
14 rows selected.
SQL> break on deptno
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
7839 KING 5000
7934 MILLER 1300
20 7566 JONES 2975
7902 FORD 3000
7876 ADAMS 1100
7369 SMITH 800
7788 SCOTT 3000
30 7521 WARD 1250
7844 TURNER 1500
7499 ALLEN 1600
7900 JAMES1 950
7698 BLAKE 2850
7654 MARTIN 1250
14 rows selected.
SQL> clear break
breaks cleared
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
10 7782 CLARK 2450
10 7839 KING 5000
10 7934 MILLER 1300
20 7566 JONES 2975
20 7902 FORD 3000
20 7876 ADAMS 1100
20 7369 SMITH 800
20 7788 SCOTT 3000
30 7521 WARD 1250
30 7844 TURNER 1500
30 7499 ALLEN 1600
30 7900 JAMES1 950
30 7698 BLAKE 2850
30 7654 MARTIN 1250
14 rows selected.
SQL>
注意:sqlplus中的一些命令,貌似在PLSQL Developer的 command windows 視窗中,不起作用。下面,我在PLSQL Developer 的command windows 中 做了一下這個實驗。
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
DEPTNO EMPNO ENAME SAL
------ ----- ---------- ---------
10 7782 CLARK 2450.00
10 7839 KING 5000.00
10 7934 MILLER 1300.00
20 7566 JONES 2975.00
20 7902 FORD 3000.00
20 7876 ADAMS 1100.00
20 7369 SMITH 800.00
20 7788 SCOTT 3000.00
30 7521 WARD 1250.00
30 7844 TURNER 1500.00
30 7499 ALLEN 1600.00
30 7900 JAMES1 950.00
30 7698 BLAKE 2850.00
30 7654 MARTIN 1250.00
14 rows selected
SQL> break on
SQL> break on deptno
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
DEPTNO EMPNO ENAME SAL
------ ----- ---------- ---------
10 7782 CLARK 2450.00
10 7839 KING 5000.00
10 7934 MILLER 1300.00
20 7566 JONES 2975.00
20 7902 FORD 3000.00
20 7876 ADAMS 1100.00
20 7369 SMITH 800.00
20 7788 SCOTT 3000.00
30 7521 WARD 1250.00
30 7844 TURNER 1500.00
30 7499 ALLEN 1600.00
30 7900 JAMES1 950.00
30 7698 BLAKE 2850.00
30 7654 MARTIN 1250.00
14 rows selected
SQL> break on deptno skip 222
SQL> select deptno,empno,ename,sal from scott.emp order by deptno;
DEPTNO EMPNO ENAME SAL
------ ----- ---------- ---------
10 7782 CLARK 2450.00
10 7839 KING 5000.00
10 7934 MILLER 1300.00
20 7566 JONES 2975.00
20 7902 FORD 3000.00
20 7876 ADAMS 1100.00
20 7369 SMITH 800.00
20 7788 SCOTT 3000.00
30 7521 WARD 1250.00
30 7844 TURNER 1500.00
30 7499 ALLEN 1600.00
30 7900 JAMES1 950.00
30 7698 BLAKE 2850.00
30 7654 MARTIN 1250.00
14 rows selected
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-680819/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- java中break標記的使用Java
- 什麼是 bootstrap 中的 break pointboot
- 對比JavaScript中的Continue和BreakJavaScript
- nginx中的break與last指令區別NginxAST
- java中switch語句注意--breakJava
- JAVA中的跳轉語句—break、continueJava
- python中break和continue的區別Python
- jquery中return,break,continue的用法總結jQuery
- javascript中break和continue的區別和作用JavaScript
- C++中break和continue的用法和區別C++
- C#中continue、return、break的區別及作用C#
- cmd_sqlplus:set head off and set head onSQL
- Break,Continue,Return的區別
- Last 與 break flag 的區別AST
- CSS word-breakCSS
- break,continue,gotoGo
- Java 14中對switch的增強,終於可以不寫break了Java
- Windows XP中的命令列命令Windows命令列
- continue、break與gotoGo
- Leetcode Word BreakLeetCode
- SQL*Net break/reset to clientSQLclient
- break和continue的區別11.8
- switch不加break情況分析
- break,continue,return區別
- CSS3 word-breakCSSS3
- LeetCode-Word BreakLeetCode
- Word Break leetcode javaLeetCodeJava
- SQL*Net break/reset to client等待SQLclient
- CSS文字:word-break(轉)CSS
- JAVA基礎--break 、continueJava
- MySQL中的source命令MySql
- aix中的vi命令AI
- MySQL中的show命令MySql
- MySQL 中的 EXPLAIN 命令MySqlAI
- word-break 和 word-wrap 的區別
- java 帶標籤的break,continue語句Java
- break和continue的區別(流程圖表示)流程圖
- word-wrap同word-break的區別