RSS Forums RSS
Please support our MySQL advertiser: Programming Forums

UDF in MySQL

Join Date: Aug 2007
Posts: 183
Reputation: tanha is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tanha tanha is offline Offline
Junior Poster

Re: UDF in MySQL

  #15  
Jun 3rd, 2008
Although this post is viewed by more than 800 persons, still not solved. As I mentioned I am using WAMP package, whuch has mysql verion 5.0.4 and also PhpMyAdmin and I dont know what is wrong with the following procedure:

  1. CREATE PROCEDURE procedure1 /* name */
  2. (IN parameter1 INTEGER) /* parameters */
  3. BEGIN /* start of block */
  4. DECLARE variable1 CHAR(10); /* variables */
  5. IF parameter1 = 17 THEN /* start of IF */
  6. SET variable1 = 'birds'; /* assignment */
  7. ELSE
  8. SET variable1 = 'beasts'; /* assignment */
  9. END IF; /* end of IF */
  10. INSERT INTO table1 VALUES (variable1);/* statement */
  11. END /* end of block */
Last edited by peter_budo : Jun 4th, 2008 at 4:00 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:26 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC