MySQL Forums
Forum List  »  Stored Procedures

SELECT in a stored procedure must have INTO
Posted by: Shubha Rao
Date: March 21, 2005 10:18PM

have create MYSQL Procedure, it created successfully

CREATE PROCEDURE `infosearch`.`sp_info_QLink1`()
begin
Select distinct PFC.* from pre_form_col1 PFC, Quest_Link WHERE
PFC.rowid = Qlink1 ORDER BY 1;
end

Now, I am trying to invoke from asp.net

try
{
OdbcConnection Conn=new OdbcConnection("DRIVER={MySQL ODBC 3.51
Driver};SERVER=localhost;DATABASE=Infosearch;UID=root;PASSWORD=real;OPTION=3");
Conn.Open();
OdbcCommand cmd=new OdbcCommand("sp_info_QLink1",Conn);
cmd.CommandType=CommandType.StoredProcedure;
OdbcDataReader dr=cmd.ExecuteReader();
}catch(Exception ee){ee=ee;}

It is raising the exception 'SELECT in a stored procedure must have
INTO'

Options: ReplyQuote


Subject
Views
Written By
Posted
SELECT in a stored procedure must have INTO
8359
March 21, 2005 10:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.