472,145 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

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 3461
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.