I'm trying to create procedure for Firebird with Zeos on Delphi 7.
I have tried to use ZQuery component with SQL:
Code: Select all
CREATE PROCEDURE UPDATE_PASIEN(
PAS_ID INTEGER,
PAS_NO_RM VARCHAR(20) CHARACTER SET NONE,
PAS_NAMA VARCHAR(255) CHARACTER SET NONE,
PAS_ALAMAT VARCHAR(255) CHARACTER SET NONE,
PAS_KELAMIN CHAR(1) CHARACTER SET NONE,
PAS_TGL_LAHIR DATE,
PAS_HAPUS CHAR(1) CHARACTER SET NONE)
AS
BEGIN
UPDATE PASIEN
SET
PAS_NO_RM = :PAS_NO_RM,
PAS_NAMA = :PAS_NAMA,
PAS_ALAMAT = :PAS_ALAMAT,
PAS_KELAMIN = :PAS_KELAMIN,
PAS_TGL_LAHIR = :PAS_TGL_LAHIR,
PAS_HAPUS = :PAS_HAPUS
WHERE
(PAS_ID = :PAS_ID);
END;
I'm not sure whether I did this in the right way. Does anybody have an idea how I should create procedure at runtime?
Thanks in advance.
Albert