Skip navigation links

MySQL Forums


Advanced Search

Parameters problem
Posted by: mo en ()
Date: October 14, 2009 03:27AM

Hi all,

How to execute this statement in MySQL using c#

Declare @ID int;
Declare @ERR int;
INSERT INTO table VALUES(@UserId, @Date);
SELECT @ID=@@IDENTITY;
SELECT @ERR=@@ERROR;

Im sending all theses statment in one line in C#
Issues are:

1. Decalare wont work here unless its a procedure and I can use SET but no idea how to able multiple statments execution in MySQL conn. string as im using MySQL connection
2. Error returned value

Thanks

Options: ReplyQuote


Subject Written By Posted
Parameters problem mo en 10/14/2009 03:27AM


Sorry, only registered users may post in this forum.