db.ddl.postgres.create-function.sql Maven / Gradle / Ivy
CREATE
FUNCTION
DBSINGULAR
.
dateDiffInDays
(
DATE1
TIMESTAMP,
DATE2
TIMESTAMP
)
RETURNs
int
AS
$$
BEGIN
RETURN
DATE_PART
(
'days',
DATE1
-
DATE2
);
END;
$$
LANGUAGE
PLPGSQL;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy