 DELIMITER $$

CREATE OR REPLACE VIEW v_statusy_ksef AS 
        SELECT value as idn,displayvalue as nazwa,param1,param2,param3,param4,param5,lp 
        FROM slowniki_pierwotne 
        WHERE slownik_GUID = 'STATUSY_KSEF';
$$
UPDATE slowniki_pierwotne_def SET vname='v_statusy_ksef' WHERE guid="STATUSY_KSEF"$$

DELIMITER ;
