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
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

About

  • 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).

SQL

<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
   SET
     di.ItTypNameSng = it.NameSng,
     di.ItTypNamePlr = IFNULL(it.NamePlr,it.NameSng);</mysql>