month

Declaration

integer function mer_month(date D)

Description

mer_month returns the month from date variable D as an integer. mer_month has values from 1 to 12.

Example Stored Procedure

CREATE PROCEDURE test_month (d DATE)

RETURNS (result INTEGER) AS

BEGIN

result = mer_month(d);

END!!

WISQL - calling the example stored procedure

execute procedure test_month("12/31/96 23:10:59.999")

RESULT

===========

12

execute procedure test_month("1/31/96 23:10:59.999")

RESULT

===========

1