1 2 3 4 5 6 7 8 9 10 11 12
|
CREATE FUNCTION GetLabel(dw_table VARCHAR(50), dw_obj VARCHAR(50), lang INT, code VARCHAR(50))
RETURNS VARCHAR(50)
BEGIN
DECLARE Temp VARCHAR(50);
SELECT obj_label into Temp
FROM code
WHERE (obj_value=dw_table.dw_obj) and (obj_dw_table=dw_table) and (obj_dw=dw_obj) and (obj_lang=lang) and (obj_value=code);
RETURN Temp;
END;
Script line: 1 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5 |
Partager