Revision 7232
Added by Aaron Marcuse-Kubitza about 12 years ago
vegbien.sql | ||
---|---|---|
618 | 618 |
|
619 | 619 |
|
620 | 620 |
-- |
621 |
-- Name: delete_scrubbed_taxondeterminations(text); Type: FUNCTION; Schema: public; Owner: - |
|
622 |
-- |
|
623 |
|
|
624 |
CREATE FUNCTION delete_scrubbed_taxondeterminations(datasource text) RETURNS void |
|
625 |
LANGUAGE sql |
|
626 |
AS $_$ |
|
627 |
DELETE FROM taxondetermination |
|
628 |
USING taxonoccurrence |
|
629 |
WHERE |
|
630 |
taxonoccurrence.source_id = source_by_shortname($1) |
|
631 |
AND taxondetermination.taxonoccurrence_id = taxonoccurrence.taxonoccurrence_id |
|
632 |
AND taxondetermination.source_id = source_by_shortname('TNRS') |
|
633 |
$_$; |
|
634 |
|
|
635 |
|
|
636 |
-- |
|
621 | 637 |
-- Name: make_family_higher_plant_group(); Type: FUNCTION; Schema: public; Owner: - |
622 | 638 |
-- |
623 | 639 |
|
Also available in: Unified diff
schemas/vegbien.sql: Added delete_scrubbed_taxondeterminations()