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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SP variables

Status
Not open for further replies.

siftach

Programmer
Jul 22, 2003
78
IL
I was trying to do something like this:

CREATE PROCEDURE `UpdateField` (FieldName VARCHAR(45), NewValue VARCHAR(45))
BEGIN
UPDATE users SET FieldName=NewValue;
END

I get a runtime error saying the field "FieldName" does not exist - I need the SP to look into what's stored in FieldName and not treat it literally. Is it possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top