Midhat
Midhat

Reputation: 17820

`@` Symbol in mysql variable names

I have started maintaining a bunch of mysql stored procs. Some variables (created with decalare statements) are accessed with the @ symbol and others without it. Whats the difference

Upvotes: 1

Views: 2085

Answers (1)

KV Prajapati
KV Prajapati

Reputation: 94643

A variable with the @ at the beginning is session variable. It exists until the session end.

Upvotes: 3

Related Questions