当前位置:首页 » 编程语言 » 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语句 复制到数据库执行就可以了。