Hi,
Can anyone advise how to execute multiple statements in a single query
batch. For example-
update customers set customer_name = 'Smith' where customer_name =
'Smyth';
select * from customers;
I can execute each statement individually but get the 'you have an error in
you SQL syntax' when trying to execute them together.
Ultimately I'm looking to build multi-statement queries (some may contain
transactions) that do lots of work and then return a result for the client
to use :-
INSERT customers
(customer_name)
VALUES
(ucase('test3'));
SELECT c.customer_id, c.customer_name
FROM customers c
WHERE c.customer_name = ucase('test3');
Can anyone tell me what I'm missing?
Thanks,
DG