Mysql Function returning same value -


I need the mysql function, but each time returns the same value / this mysql function gives me the meaning every time I S_Start_ToBeStarted (value of 1)

  - Colora delimiters $$ drop function is present, then create `colorA` $$ function` colorA` (Appf VARCHAR (3), Start_Datef DATETIME, PDCf DATETIME) Final Setting INT DEFAULT 0; If APP = 'Yes' & amp; IFNULL (Start_Datef, 'zero' = 'zero' in & amp; sysdate () & lt; = PDCf then set finalcolor = (selection `` PP_Colors```S_Start_ToBeStarted` to SCR_Sap`.'PP_Colors` border1); else if Appf = 'yes' in & amp; IFNULL (Start_Datef, 'zero') = 'zero' in & sysdate ()> PDCf again set finalcolor = (selection `` PP_Colors```S_Start_Error` to SCR_Sap`. `PP_Colors` limit 1); otherwise if Appf = 'yes' in & amp;! Sysdate () & lt; = 'zero' & amp; IFNULL (Start_Datef, 'zero') = PDCf then set finalcolor = (selection` `PP_Colors SCR_Sap` .`PP_Colors` border1 from `.`S_Start_Ok`;; else if Appf = 'Yes' & amp; IFNULL (Start_Datef, 'zero') = 'zero' in & amp;! Sysdate () & gt; PDCf then set finalcolor = (select `PP_Colors` .`S_Start_LateStarted``` SCR_Sap``PP_C Olors` range 1); and set finalcolor = (selection `` PP_Colors``S_NotApplicable` to SCR_Sap` .`PP_Colors` range 1); ending; ending; ending; ending; returns finalcolor ; $$ DELIMITER;   

tap = and ! = is the tap of operators, foobar = null tap (unknown) is not true or false. Use IS NULL and is not instead

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -