Is it possible to return from a HSQLDB Stored procedure before reaching its end?

I've tried:

IF (condition) THEN
  RETURN;
END IF;

This doesn't compile. Neither with EXIT or LEAVE instead of RETURN.

有帮助吗?

解决方案

CREATE PROCEDURE PRO (VAR INT)
mylabel: BEGIN ATOMIC

  ...
  IF VAR = 3 THEN
   LEAVE mylabel;
  END IF;
  ...

END
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top