I am using SEQUEL Pro and MySQL. When I execute each line individually no errors are generated and code works as expected. When I try to execute all lines together I get the error below.
DELIMITER $$
CREATE TEMPORARY TABLE pricesOutput (price float, namex varchar(255), updatedAt datetime);
insert into pricesOutput
select 9.99, 'Bosch ZXY', '12/05/12';
select *
from pricesOutput;
drop table pricesOutput;
end$$
delimiter;
[ERROR in query 1] 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 'insert into pricesOutput select 9.99, 'Bosch ZXY', '12/05/12';
select *
from pr' at line 3
[ERROR in query 2] 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 'delimiter;' at line 1