public.last_updated
Documentation | Pagila |
Schema | public |
Name | last_updated |
Module | Functions |
Returns current timestamp for last_updated trigger.
Input/Output
Mode | Name | Data type | Description | |
---|---|---|---|---|
1 | OUT | Returns | trigger | Return current timestamp. |
Return current timestamp. |
Script
CREATE OR REPLACE FUNCTION public.last_updated() RETURNS trigger LANGUAGE plpgsql AS $function$ BEGIN NEW.last_update = CURRENT_TIMESTAMP; RETURN NEW; END $function$ |
Exported: 2018-10-12 17:07, Last imported: 2018-08-06 09:25