Reputation: 17820
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
Reputation: 94643
A variable with the @ at the beginning is session variable. It exists until the session end.
Upvotes: 3