Who Can Add a Comment
The COMMENT ON statement can be executed by:
-
The owner of the object that is commented on
-
Users with the
ALTER ANY object_typeprivilege, where object_type is the type of object commented on (e.g.PROCEDURE)
The COMMENT ON statement can be executed by:
The owner of the object that is commented on
Users with the ALTER ANY object_type privilege, where object_type is the type of object commented on (e.g. PROCEDURE)
COMMENT ONAdding a comment for the current database
COMMENT ON DATABASE IS 'It is a test (''my.fdb'') database';
Adding a comment for the METALS table
COMMENT ON TABLE METALS IS 'Metal directory';
Adding a comment for the ISALLOY field in the METALS table
COMMENT ON COLUMN METALS.ISALLOY IS '0 = fine metal, 1 = alloy';
Adding a comment for a parameter
COMMENT ON PARAMETER ADD_EMP_PROJ.EMP_NO IS 'Employee ID';
Adding a comment for a package, its procedures and functions, and their parameters
COMMENT ON PACKAGE APP_VAR IS 'Application Variables';
COMMENT ON FUNCTION APP_VAR.GET_DATEBEGIN
IS 'Returns the start date of the period';
COMMENT ON PROCEDURE APP_VAR.SET_DATERANGE
IS 'Set date range';
COMMENT ON
PROCEDURE PARAMETER APP_VAR.SET_DATERANGE.ADATEBEGIN
IS 'Start Date';