coolant Posted August 5, 2008 Share Posted August 5, 2008 I am new to creating mysql functions. I have created postgres (for work, i hate it too) functions - but after trying for a bit ... I need help. How can I do something like this? CREATE FUNCTION user_information ( uid ) RETURNS SET BEGIN SELECT * FROM users WHERE uid = $1; END; Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted August 5, 2008 Share Posted August 5, 2008 I think they are called proceudres Quote Link to comment Share on other sites More sharing options...
coolant Posted August 5, 2008 Author Share Posted August 5, 2008 Procedures don't return data, right? Quote Link to comment Share on other sites More sharing options...
trq Posted August 5, 2008 Share Posted August 5, 2008 I have created postgres (for work, i hate it too) functions Nothing wrong with postgres. You can define your own functions in mysql 5 >, why don't you tell us what your actual problem is? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.