How I can convert this query to trigger:
select concat (
categories.abreviation , '/' ,
to_char(date_op,'yy'),'/',
to_char(date_op,'mm'),'/',
trim(to_char(compteur_op_cat,'000'))
) as num_bord
from
operation op
inner join
categories on categories.id_cat=op.id_cat ;
Trigger for table operation, before select return num_bord as column.
I need a trigger to concat num_bord for some reason:
- Performance (note that I have
num_bordandnum_opforconcat()). - Search with
LIKEeasily.