I'd like to translate this very simple stored procedure from the Sybase SQL dialect to the HSQLDB dialect:
CREATE PROCEDURE dbo.some_proc
AS
BEGIN
SELECT int_param1 FROM control WHERE id_param = "SOME_PARAM" AND id_active = "Y"
END
In my humble opinion the documentation for HSQLDB is very mysterious about stored procedures. I couldn't find the right way to do it. I'm using HSQLDB version 2.3.1.