Hi,
currently im using MYSQL workbench to extract some features needed for my project. However im having a problem with this query,
select newtime from new_event
IF newtime < 80101
than set newtime = 0
elseif newtime > 80000 and newtime < 160101 than set newtime = 1
elseif newtime >160000 than set newtime = 2
end if
I have converted the time into numeric; hence newtime. Im trying to use newtime to create a time frame ( 0 , 1 , 2) . Unfortunately when i compiled it keeps giving an error code 1064
new_event is a new table created while doing the first initial query.
I hope you could really help me.
thank u
currently im using MYSQL workbench to extract some features needed for my project. However im having a problem with this query,
select newtime from new_event
IF newtime < 80101
than set newtime = 0
elseif newtime > 80000 and newtime < 160101 than set newtime = 1
elseif newtime >160000 than set newtime = 2
end if
I have converted the time into numeric; hence newtime. Im trying to use newtime to create a time frame ( 0 , 1 , 2) . Unfortunately when i compiled it keeps giving an error code 1064
new_event is a new table created while doing the first initial query.
I hope you could really help me.
thank u
Comment