Marek,
Not sure but, try switching the lines
db_data.mda_mod_con _CON,
db_data.set_mda_fue _FUE
with
db_data.set_mda_fue _FUE,
db_data.mda_mod_con _CON
so there query is:
SELECT
_CON.con_id,
_MOD.mod_ty,
_VER.version,
_YEA.year,
_CON.dri_id,
_CON.man_cod,
_ENG.eng_p
Alex,
Postgres's "select into" does not work like oracle.
The "select into" for postgresql creates another
table. Try this;
select aliasvalue || trim(arrayval[i]) into
newtablename from currenttablename where
trim(searchfield) like '%' ||
trim(searchvalue) || '%';
Stuart
--- A E <[EMAIL