VbzCart/docs/procs/Upd TitleIttyps fr CatIttyps: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | procs
Jump to navigation Jump to search
imported>Woozle
(New page: ==About== * '''Input''': {{vbzcart|table|cat_ittyps}} * '''Output''': {{vbzcart|table|_title_ittyps}} (update) ==SQL== <section begin=sql /><mysql>CREATE PROCEDURE Upd_TitleIttyps_fr_CatIt...)
 
imported>Woozle
(created in db)
Line 2: Line 2:
* '''Input''': {{vbzcart|table|cat_ittyps}}
* '''Input''': {{vbzcart|table|cat_ittyps}}
* '''Output''': {{vbzcart|table|_title_ittyps}} (update)
* '''Output''': {{vbzcart|table|_title_ittyps}} (update)
* '''History''':
** '''2010-11-10'''
*** Added DROP PROCEDURE for easier maintenance.
*** Created in database (procs were not ported from L48 to Rizzo).
==SQL==
==SQL==
<section begin=sql /><mysql>CREATE PROCEDURE Upd_TitleIttyps_fr_CatIttyps()
<section begin=sql /><mysql>DROP PROCEDURE IF EXISTS Upd_TitleIttyps_fr_CatIttyps;
    UPDATE _title_ittyps AS ti LEFT JOIN cat_ittyps AS it ON ti.ID_ItTyp=it.ID
CREATE PROCEDURE Upd_TitleIttyps_fr_CatIttyps()
      SET
  UPDATE _title_ittyps AS ti LEFT JOIN cat_ittyps AS it ON ti.ID_ItTyp=it.ID
        ti.ItTypNameSng = it.NameSng,
    SET
        ti.ItTypNamePlr = it.NamePlr,
      ti.ItTypNameSng = it.NameSng,
        ti.ItTypSort = it.Sort;</mysql>
      ti.ItTypNamePlr = it.NamePlr,
      ti.ItTypSort = it.Sort;</mysql>
<section end=sql />
<section end=sql />

Revision as of 15:16, 10 November 2010

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

SQL

<section begin=sql /><mysql>DROP PROCEDURE IF EXISTS Upd_TitleIttyps_fr_CatIttyps; CREATE PROCEDURE Upd_TitleIttyps_fr_CatIttyps()

 UPDATE _title_ittyps AS ti LEFT JOIN cat_ittyps AS it ON ti.ID_ItTyp=it.ID
   SET
     ti.ItTypNameSng = it.NameSng,
     ti.ItTypNamePlr = it.NamePlr,
     ti.ItTypSort = it.Sort;</mysql>

<section end=sql />