Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stored prcedures giving me the blues

Status
Not open for further replies.

sd0t1

IS-IT--Management
Mar 14, 2007
131
US
I'm new to stored procedures. I found plenty of tutorials, but not any really good ones that started from beginner lever and worked indepth enough or either to indepth and assumed I knew more than I know.

I'm not sure what I'm doing wrong here.

delimiter //
CREATE PROCEDURE showUser(
in jistag varchar(10),
out user varchar(40))
begin
SELECT * FROM master
WHERE jis_tag = jistag
INTO user;
END //

it's stored ok, but when I call it I get this error.

Unknown column '?????' in 'field list'

any ideas??
 
What are you trying to do? You are trying to put more than one value into one variable? Supply the field name that holds the user name. How else can MySQL know which field to use?

+++ Despite being wrong in every important aspect, that is a very good analogy +++
Hex (in Darwin's Watch)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top