Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 数据库管理 » 管理数据库 » SQL Anywhere 图形管理工具 » 使用 Interactive SQL » Interactive SQL 选项

 

on_error 选项 [Interactive SQL]

控制在 Interactive SQL 中执行语句期间遇到错误时所采取的操作。

允许值

字符串(有关允许值,请参见以下内容)

Default

Prompt

注释

控制在执行语句期间遇到错误时所采取的操作,如下所示:

  • Stop   Interactive SQL 停止执行语句。

  • Prompt   Interactive SQL 提示用户决定是否要继续。

  • Continue   忽略错误,Interactive SQL 继续执行语句。

  • Exit   Interactive SQL 关闭。

  • Notify_Continue   报告错误,并提示用户按 Enter 键或单击 [确定] 继续。

  • Notify_Stop   报告错误,并提示用户按 Enter 键或单击 [确定] 停止执行语句。

  • Notify_Exit   报告错误,并提示用户按 Enter 键或单击 [确定] 关闭 Interactive SQL。

执行 .sql 文件时,Stop 和 Exit 值是等效的。如果指定了这两个值中的任意一个,Interactive SQL 将会关闭。

另请参见