VbzCart/docs/procs/Upd DeptIttyps fr CatIttyps
Jump to navigation
Jump to search
About
- Input: Template:Vbzcart
- Output: Template:Vbzcart (update)
- History:
- 2010-11-10
- Added DROP PROCEDURE for easier maintenance.
- Created in database (procs were not ported from L48 to Rizzo).
- 2010-11-10
SQL
<section begin=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>
<section end=sql />