I can use IN param - but not out. I get all kinds of errors.
out param with mydac Stored Procedure
- 
				nbalcarres
 - Posts: 1
 - Joined: Mon 23 Jan 2006 22:20
 
out param with mydac Stored Procedure
Any one know how to use the out param with mydac?
I can use IN param - but not out. I get all kinds of errors.
			
									
									
						I can use IN param - but not out. I get all kinds of errors.
MySQL Server data transferring protocol does not support output parameters. 
To get parameters from MySQL Server you should use SELECT statements. For example:
			
									
									
						To get parameters from MySQL Server you should use SELECT statements. For example:
Code: Select all
  with MyQuery1 do begin
    SQL.Add('SELECT 1+1 INTO @par1;');
     SQL.Add('SELECT 2+2 INTO @par2;');
     SQL.Add('SELECT @par1 AS p1, @par2 AS p2;');
     Open;
     Label1.Caption := FieldValues['p1'];
     Label2.Caption := FieldValues['p2'];
   end;- 
				Guest