Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
1

    
2
-- **** reference system: google earth ************
3
SELECT ( @refSysVocId := id) as vocId FROM TermVocabulary WHERE uuid = 'ec6376e5-0c9c-4f5c-848b-b288e6c17a86';
4

    
5
INSERT INTO DefinedTermBase (DTYPE, id, uuid, created, protectedtitlecache, titleCache, orderindex, defaultcolor, vocabulary_id) 
6
SELECT 'ReferenceSystem' ,  (@defTermId := max(id)+1)  as maxId , '1bb67042-2814-4b09-9e76-c8c1e68aa281', '2010-06-01 10:15:00', b'0', 'Google Earth', null, null, @refSysVocId
7
FROM DefinedTermBase ;
8

    
9
-- language english
10
SELECT ( @langId := id) as langId FROM DefinedTermBase WHERE uuid = 'e9f8cdb7-6819-44e8-95d3-e2d0690c3523';
11

    
12
-- representation
13
INSERT INTO Representation (id, created, uuid, text, abbreviatedlabel, label, language_id) 
14
SELECT  ( @repId := max(id)+1 ) AS maxId ,'2010-06-01 18:49:07','fadb1730-9936-44e7-8911-884a84662b08', 'Google Earth','Google','Google Earth', @langId
15
FROM Representation;
16
;
17

    
18
 -- defTerm <-> representation
19
INSERT INTO DefinedTermBase_Representation (DefinedTermBase_id, representations_id) 
20
VALUES (@defTermId,@repId);
(2-2/2)