469,645 Members | 1,150 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Declaring variables

Hi, I cant declare a varible in mySQL 4
i've tried:

declare @id as int
declare @id int
declare id int

any ideas?

thaks

Jun 28 '06 #1
1 3434
sa******@gmail.com wrote:
Hi, I cant declare a varible in mySQL 4
i've tried:

declare @id as int
declare @id int
declare id int

any ideas?


DECLARE only works in stored routines, which is a feature introduced in
MySQL 5.

Regards,
Bill K.
Jun 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Oliver Corona | last post: by
2 posts views Thread by ross.oneill | last post: by
1 post views Thread by ColinWard | last post: by
6 posts views Thread by Mark A. Sam | last post: by
6 posts views Thread by =?Utf-8?B?QUw=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.