MySQL stored procedure will execute but conditions not working -
MySQL will perform the stored procedure, but the conditions are not working Can anyone clear this problem?
Do not check the empty value or
from the position does it require replacement for or
?
DELIMITER $ DEFAINER = `RBAR` @` %` process' progress in search` (Client ID Benefit, GCN name varchar (250), TeamID int, USPMID Bigint, JobReceivedDate datetime, Importance ID Bigitt ) Select * from * jobdetails * (Client = ClientID or ClientID = "") and (GCName = GCName or GCName = "") and (TeamID = TeamID or TeamID = "") and (Received date = JobReceivedDate or JobReceivedDate = "") And (ImportanceID = Importance ID or Importance ID = "") and (JobIDO (JobCoordinator select job for the country, where USProjectManagerID = USPMID));
I think this can be a bracket
It < Code> (Clientid = ClientID or ClientID = "") can be written in such a way
(clientid = ClientID) or (ClientID = "")
< / P>
Its justa thought I could be wrong
Comments
Post a Comment