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; Link to comment https://forums.phpfreaks.com/topic/118182-create-mysql-function/ Share on other sites More sharing options...
cooldude832 Posted August 5, 2008 Share Posted August 5, 2008 I think they are called proceudres Link to comment https://forums.phpfreaks.com/topic/118182-create-mysql-function/#findComment-608205 Share on other sites More sharing options...
coolant Posted August 5, 2008 Author Share Posted August 5, 2008 Procedures don't return data, right? Link to comment https://forums.phpfreaks.com/topic/118182-create-mysql-function/#findComment-608207 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? Link to comment https://forums.phpfreaks.com/topic/118182-create-mysql-function/#findComment-608217 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.