begin
declare tp int
if length(date('2007-01-01')) is not null then
set tp = 0
else
set tp = 1
end if
end
da eroarea:
[...] ERROR 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 'declare tp int
if length(date('2007-01-01')) is not null then
set tp = 0
else
s' at line 2
Help
Ignat Andrei
http://serviciipeweb.ro/iafblog