Re: NEED HELP IN IF STATEMENT

2005-05-02 Thread Peter Brawley
Shawn, Madderla, >Don't you need to DECLARE the variable "mvalidate" before you can use it? It's declared as OUT mvalidate varchar(10). PB - [EMAIL PROTECTED] wrote: madderla sreedhar <[EMAIL PROTECTED]> wrote on 05/02/2005 03:10:07 AM: Can u please execute the following

Re: NEED HELP IN IF STATEMENT

2005-05-02 Thread Peter Brawley
Madderla, 1. Var assignments need SET, ie SET mvariable = ... 2. Missing semicolon after 'TRUE' PB - madderla sreedhar wrote: Can u please execute the following procedure in MySql and tell me where I had gone wrong because on my system the same code is giving error near line " := 'TRUE' " CR

Re: NEED HELP IN IF STATEMENT

2005-05-02 Thread SGreen
madderla sreedhar <[EMAIL PROTECTED]> wrote on 05/02/2005 03:10:07 AM: > Can u please execute the following procedure in MySql > and tell me where I had gone wrong because on my > system the same code is giving error near line > " := 'TRUE' " > > CREATE PROCEDURE cart_items_validate > (IN mcus

NEED HELP IN IF STATEMENT

2005-05-02 Thread madderla sreedhar
Can u please execute the following procedure in MySql and tell me where I had gone wrong because on my system the same code is giving error near line " := 'TRUE' " CREATE PROCEDURE cart_items_validate (IN mcustid INT ,IN mprodid varchar(10), OUT mvalidate varchar(10)) BEGIN DECLARE rowexists