You are here: procedures in mysql « PHP SQL « IT news, forums, messages
procedures in mysql

Posted by Siv Hansen on 10/22/05 15:23

I've recenty discovered that mysql has support for user defined procedures.

I'm trying to create a procedure to insert a user into table brukere
like this
mysql> delimiter // /* so that I can use ; in my procedure */

mysql>create procedure insertUser(
'username' in tinytext,
'password' in tinytext,
'niva' in tinytext
)
as
begin
insert into brukere (navn, passord, niva) values ('username',
'password', 'niva');
end
//
but I keep getting an error near "der hvor parameterlistingen begynner)

My mysql version is 4.1.13a

Can anyone give me a basic syntax for procedures with parameters, please?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация