12 lines
291 B
PL/PgSQL
12 lines
291 B
PL/PgSQL
CREATE OR REPLACE FUNCTION nn_db.status_get()
|
|
RETURNS TABLE(
|
|
pk_status nn_db.status.pk_status%TYPE
|
|
, title nn_db.status.title%TYPE)
|
|
AS $$
|
|
BEGIN
|
|
RETURN QUERY SELECT
|
|
nn_db.status.pk_status, nn_db.status.title
|
|
FROM nn_db.status
|
|
ORDER BY nn_db.status.pk_status;
|
|
END;
|
|
$$ LANGUAGE plpgsql |