You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
466 B

-- 1/3 : Création de la table temporaire
DROP TABLE IF EXISTS w_dbsetup
;
CREATE TEMP TABLE w_dbsetup AS
SELECT
code, label
FROM rh.t_dashboard
ORDER BY code LIMIT 0
;
-- 2/3 : Peuplement de la table temporaire
INSERT INTO w_dbsetup(
code,
label
)
VALUES
('CTI_EGAPRO', 'Cockpit RH')
;
-- 3/3 : Màj de la table iCTI
TRUNCATE rh.t_dashboard;
INSERT INTO rh.t_dashboard(code, label)
SELECT
w_dbsetup.code,
w_dbsetup.label
FROM w_dbsetup
;