sql - I had errors in MariaDB Event Scheduler -
delimiter | create event queue_sorting on schedule every 1 seconds begin declare ts, pn int; select table_size_id ts tables table_size_id = ( select table_size_id queue order q_time desc limit 1 ) , phone_number null order table_line asc, table_number asc limit 1; select phone_number pn queue order q_time desc limit 1; update tables set phone_number=pn table_size_id=ts; delete queue phone_number=pn , table_size_id=ts; end | delimiter ;
i love create event manage queue, code errors. don't know why. have been searching on websites, haven't found best solution. should do? can explain?
what if latest table_size_id's had phone_number? event cannot move past find useful.
table_size_id
-- normalizing sizes? (i hope not.)
please provide show create table
.
Comments
Post a Comment