當前位置:首頁 » 編程語言 » plsqlexit
擴展閱讀
webinf下怎麼引入js 2023-08-31 21:54:13
堡壘機怎麼打開web 2023-08-31 21:54:11

plsqlexit

發布時間: 2023-07-12 23:19:03

1. PLsql的SQL WINDOW中不能執行的語句

樓主的意思,我大概知道了。

其實樓主的意思,基本上就是 哪些 命令,不是標準的 SQL 命令

是 SQL Plus 所特有的命令。

清單如下:

有樓主的 「SHO[W] [option]」 哦

Alphabetic List of SQL*Plus Commands
@{url | file_name[.ext]} [arg ...]

@@ { url | file_name[.ext] } [arg ...]

/ (slash)

ACC[EPT] variable [NUM[BER] | CHAR | DATE | BINARY_FLOAT | BINARY_DOUBLE] [FOR[MAT] format] [DEF[AULT] default] [PROMPT text | NOPR[OMPT]] [HIDE]

*A[PPEND] text

ARCHIVE LOG {LIST | STOP} | {START | NEXT | ALL | integer} [TO destination]

ATTRIBUTE [type_name.attribute_name [option...]]

BRE[AK] [ON report_element [action [action]]] ...

BTI[TLE] [printspec [text | variable] ...] | [ON | OFF]

*C[HANGE] sepchar old [sepchar [new [sepchar]]]

CL[EAR] option ...

COL[UMN] [{column | expr} [option ...]]

COMP[UTE] [function [LAB[EL] text] ... OF {expr | column | alias} ...ON {expr | column | alias | REPORT | ROW} ...]

CONN[ECT] [{logon | /} [AS {SYSOPER | SYSDBA}]]

COPY {FROM database | TO database | FROM database TO database} {APPEND | CREATE | INSERT | REPLACE} destination_table[(column, column, column, ...)] USING query

DEF[INE] [variable] | [variable = text]

*DEL [n | n m | n * | n LAST | * | * n | * LAST | LAST]

DESC[RIBE] {[schema.]object[@connect_identifier]}

DISC[ONNECT]

*ED[IT] [file_name[.ext]]

EXEC[UTE] statement

{EXIT | QUIT} [SUCCESS | FAILURE | WARNING | n | variable | :BindVariable] [COMMIT | ROLLBACK]

*GET [FILE] file_name[.ext] [LIST | NOLIST]

HELP | ? [topic]

*HO[ST] [command]

*I[NPUT] [text]

L[IST] [n | n m | n * | n LAST | * | * n | * LAST | LAST]

*PASSW[ORD] [username]

PAU[SE] [text]

PRI[NT] [variable ...]

PRO[MPT] [text]

{QUIT | EXIT} [SUCCESS | FAILURE | WARNING | n | variable | :BindVariable] [COMMIT | ROLLBACK]

RECOVER {general | managed | BEGIN BACKUP | END BACKUP}

REM[ARK]

REPF[OOTER] [PAGE] [printspec [text | variable] ...] | [ON | OFF]

REPH[EADER] [PAGE] [printspec [text | variable] ...] | [ON | OFF]

R[UN]

*SAV[E] [FILE] file_name[.ext] [CRE[ATE] | REP[LACE] | APP[END]]

SET system_variable value

SHO[W] [option]

SHUTDOWN [ABORT | IMMEDIATE | NORMAL | TRANSACTIONAL [LOCAL]]

*SPO[OL] [filename[.ext] [CRE[ATE] | REP[LACE] | APP[END]] | OFF | OUT]

STA[RT] { url | file_name[.ext] } [arg ...]

STARTUP options | upgrade_options

*STORE {SET} file_name[.ext] [CRE[ATE] | REP[LACE] | APP[END]]

TIMI[NG] [START text | SHOW | STOP]

TTI[TLE] [printspec [text | variable] ...] | [ON | OFF]

UNDEF[INE] variable ...

VAR[IABLE] [variable [type]]

WHENEVER OSERROR {EXIT [SUCCESS | FAILURE | n | variable | :BindVariable] [COMMIT | ROLLBACK] | CONTINUE[COMMIT | ROLLBACK | NONE]}

WHENEVER SQLERROR {EXIT [SUCCESS | FAILURE | WARNING | n | variable | :BindVariable] [COMMIT | ROLLBACK] | CONTINUE [COMMIT | ROLLBACK | NONE]}

XQUERY xquery_statement

*Commands not available in iSQL*Plus.

2. plsql登錄無響應

1,先將服務裡面的oracleTNSlistener(監聽)和oracleDBConsole停止(若oracleDBConsole處於停止運行狀態,則只需重啟一次監聽即可),然後開啟oracleDBConsole,等oracleDBConsole顯示正在運行再開啟監聽服務。
2,如果再次打開登陸出現TNS報錯,則點取消進入未登錄模式,打開oracle自帶的sql plus命令窗口,登入scott賬號,然後退出(比如輸入exit命令),再在「會話」欄里選擇登入賬號進行登入。若有更簡單的方法還請不吝分享!

=======================2015/11/01========================

3. plsql中手動修改數據後怎樣查看相應sql的執行語句

你直接 echo $sql;exit;這樣就把sql語句列印出來了,然後你把sql語句 復制到資料庫執行就可以了。