VbzCart/procs/Upd DeptIttyps fr CatIttyps

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< VbzCart‎ | procs
Jump to navigation Jump to search


  • Input: cat_ittyps
  • Output: _dept_ittyps (update)
  • History:
    • 2010-11-10
      • Added DROP PROCEDURE for easier maintenance.
      • Created in database (procs were not ported from L48 to Rizzo).


<mysql>DROP PROCEDURE IF EXISTS Upd_DeptIttyps_fr_CatIttyps; CREATE PROCEDURE Upd_DeptIttyps_fr_CatIttyps()

 UPDATE _dept_ittyps AS di LEFT JOIN cat_ittyps AS it ON it.ID=di.ID_ItTyp
     di.ItTypNameSng = it.NameSng,
     di.ItTypNamePlr = IFNULL(it.NamePlr,it.NameSng);</mysql>