> if new."path" = '''' then> SELECT INTO tmp "id_category" from TG_RELNAME where "path" = ''Top'';> if FOUND then
Perhaps you will get some idea if you read the document:
37.6.4. Executing Dynamic Commands
Regards,CN