EXECUTE Run a single PLSQL statement EXEC :answer := EMP_PAY.BONUS('SMITH') EXIT [n] Commit, logoff and exit (n = error code) EXIT SQL.SQLCODE GET file Retrieve a previously stored command file. HELP topic Topicisan SQL PLUS command or HELP COMMANDS HOST Execute a host operating system...
has no command history list and does not record SQL * Plus commands. ED [ IT ] [ file_name[.ext ] ] Not available in iSQL * Plus 例子:不指定文件名 SQL > EDIT F: / 会创建一个 * 。sql文件,如下图所示 SQL > EDIT F: / 123 .TXT 创建123.txt文件。如下图所示 -- -22 EXECUTE ...
--execute <statement> 执行语句 --get <sqlfilename> 将sql脚本从文件load into sql buffer --save <filename> 将sql buffer内容保存至文件 --host <cls | del...> sql会话模式利用host命令调用cmd命令 --input 追加新行enter a new line --list | l <n> 列出sql buffer中sql语句 --password 修改cu...
如果加了commit选项,则出错后,sql*plus在退出前,会自动执行commit一下;如果加了rollback选项,则出错后,sql*plus在退出前,会自动执行rollback一下;如果加了none选项或什么都不加,则退出不会做任何事,但实际上默认设置下sql*plus在退出前会commit一下,所以这种情况与加了commit选项效果一样。 例:whenever sqlerror...
ED[IT] [file_name[.ext]] Not available in iSQL*Plus EXECUTE --- Executes a single PL/SQL statement or runs a stored procedure. EXEC[UTE] statement EXIT --- Commits or rolls back all pending changes, logs out of Oracle, terminates SQL*Plus and returns control to the operating system....
1)@ 运行指定脚本中的SQL语句。可以从本地文件系统或者从WEB服务器调用脚本。常常用于使用存储于本地的脚本刷新存储过程,修改表结构。 2)@@ 运行指定脚本中的SQL语句,此命令与@命令相似,但是它可以调用脚本相同的目录下查找指定的脚本。 3)/ 执行SQL命令或者
执行一个SQL脚本文件 SQL>startfile_name SQL>@file_name 将显示的内容输出到指定文件 SQL>SPOOLfile_name 关闭spool输出 SQL>SPOOLOFF 只有关闭spool输出,才会在输出文件中看到输出的内容。 改变列的显示长度. 字符型改变: SQL>colcolnameformata40 数值型改变: SQL>colcolnameformat99999.99 是否显示脚本中正在...
Next, the sqlplus spool command starts output to the pipe, and I execute a dummy sql (select * from dual). With ‘spool off’, the output to the pipe is stopped. This makes the gzip process in the background to stop. Because the gzip process is not compressing anymore to the first ...
SQL> desc tab --如果tab不是表,则只显示其类型和名字 7、保存所有输入: SQL> spool D:\xxx --建立一个xxx.LST文件 SQL> spool --显示当前spool状态 SQL> select * from dual; SQL> spool off --结束录入 8、执行过程 SQL> execute a;
SQLandSQL*PlusInteraction SQL*Plus SQLstatementsPL/SQLblocks Oracleserver SQL*PluscommandsFormattedreportClient Queryresults UserFriendlyInterface 2010年6月26日 DifferentiatebetweenSQLandSQL*Plus SQLAnonprocedurallanguageANSIstandardKeywordcannotbeabbreviatedStatementsmanipulatedataandtabledefinitionsinthedatabaseSQL*...