waitforresult
構文
waitforresult expected_result timeoutseconds searchrow searchcol sqlstatement
説明
結果が1以上の列の場合を除き、waitfor
コマンドと同様です。また、結果は0行を返すこともあります。
問合せで期待された結果が返されるまたはタイムアウトが起こるまで、指定された文を1秒に1度実行します。searchrow
およびsearchcol
引数は、行または列が考慮される順序を示す位置(1..N
)を示します。searchrow
またはsearchcol
で'*'
を使用して、結果セットの任意の行または列が期待値を持つことを示します。waitforコマンドを参照してください。
例
Command> waitforresult 1 5 * * select * from dual; Waitforresult: Time expired. The command failed.
詳細レベル4では、値の照合が成功しなかった理由を診断するために比較に使用している結果値を取得できます。
Command> verbosity 4; The command succeeded. Command> waitforresult 1 5 * * select * from dual; Value is 'X' Value is 'X' Value is 'X' Value is 'X' Value is 'X' Waitforresult: Time expired. The command failed.