Why do I get an error saying that the SQL command is not properly ended
when I have this code:
SELECT MATERIALID,
MATERIALNAME,
MATERIALTYPEID,
CURECODEID,
COMBINATIONCODE,
MATERIALSTATUSID,
ACTIVATED,
DEACTIVATED
FROM MATERIAL_HEADER
WHERE MATERIALID = 112,
MATERIALNAME = 3,
MATERIALTYPEID = 2,
CURECODEID = 0,
COMBINATIONCODE = 3,
MATERIALSTATUSID = 3;
I've tried not including the semicolon, parenthesis and some other stuff but none has worked.
WHERE MATERIALID = 112 AND MATERIALNAME = 3 AND ...