Jump to content

Create Proc


otuatail

Recommended Posts

Can anyone help here. I have been told by my web host that on MySQL 5.0.4 that I have been given privaleges for creating stored procedurers and view. The only codeing I have on this subject is sklserver 2000, but up to now

all the commands are the same. Can someone tell me if there is an error in this

 

CREATE PROC surname

@id NVARCHAR(10),

@name VARCHAR (60) OUTPUT

AS

SELECT @name = lastname FROM PhoneNumbers WHERE id = @id

 

This is waht i get back

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PROC surname

@id NVARCHAR(10),

@name VARCHAR (60) OUTPUT

AS

SELECT @name = l' at line 1

 

 

Link to comment
https://forums.phpfreaks.com/topic/47737-create-proc/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.