Re: Unable to use ORDER BY in an INSERT statement
Date: 1996/02/09
Message-ID: <311B325E.167EB0E7_at_axion.bt.co.uk>#1/1
Dave Lumby wrote:
> INSERT INTO new_table (user_ref, start, rec_id) VALUES ('654321', '07:30', 1);
Would the following do what you want?
INSERT INTO new_table (user_ref, start, revc_id>
SELECT bt.account_no, '07:30', seq.NEXTVAL
FROM big_table bt
DROP SEQUENCE seq;
> Thanks for taking the time to read this and for any help to may be able to
>
> Folks,
> I'm trying to transfer fields from one table to another in a specific
> order. Ideally I'd like to be able to use a statement something like -
> INSERT INTO new_table (user_ref, start, rec_id) VALUES ('400000', '07:30', 2);
> etc
CREATE SEQUENCE seq;
WHERE bt.filter = 1;
> offer.
>
> Dave
--
===============================================================
Sukhvinder Aujla Tel: 01473 647640 Fax:01473 640279
Address: MLB5/51, BT Labs, Martlesham Heath, Ipswich IP5 7RE
email: saujla_at_axion.bt.co.uk
Received on Fri Feb 09 1996 - 00:00:00 CET