MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 9th, 2006, 04:24 AM
xorl xorl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 2 xorl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 2 sec
Reputation Power: 0
Create Procedure syntax?

hey

I have problems with this stored procedure:

my table is info.


CREATE PROCEDURE sp_log(NULL)
BEGIN
SELECT COUNT(*) AS Num WHERE
info.username = @username AND
info.password = @password; //not sure if there is going to be an END here.

im somewhat unused to mysql syntax but im learning...

Any help would be appreciated

Best regards
xorl

Reply With Quote
  #2  
Old August 9th, 2006, 01:16 PM
xorl xorl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 2 xorl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 2 sec
Reputation Power: 0
bleh

hey again

Now it works, when i changed some in the syntax. i didnt check the syntax correctly and delimiter usage...now it works...

best regards
xorl

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Create Procedure syntax?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT