-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsertchroncontrol.sql
More file actions
18 lines (18 loc) · 934 Bytes
/
insertchroncontrol.sql
File metadata and controls
18 lines (18 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CREATE OR REPLACE FUNCTION ts.insertchroncontrol(_chronologyid integer, _chroncontroltypeid integer, _analysisunitid integer DEFAULT NULL::integer, _depth double precision DEFAULT NULL::double precision, _thickness double precision DEFAULT NULL::double precision, _agetypeid integer DEFAULT NULL::integer, _age double precision DEFAULT NULL::double precision, _agelimityounger double precision DEFAULT NULL::double precision, _agelimitolder double precision DEFAULT NULL::double precision, _notes character varying DEFAULT NULL::character varying)
RETURNS integer
LANGUAGE sql
AS $function$
INSERT INTO ndb.chroncontrols(
chronologyid,
chroncontroltypeid,
analysisunitid,
depth,
thickness,
agetypeid,
age,
agelimityounger,
agelimitolder,
notes)
VALUES (_chronologyid, _chroncontroltypeid, _analysisunitid, _depth, _thickness, _agetypeid, _age, _agelimityounger, _agelimitolder, _notes)
RETURNING chroncontrolid
$function$