🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11234

INSERT INTO with SELECT

#11234
From: TR
Date: Thu, 12 Dec 2002 13:35
20 lines
1379 bytes
INSERT INTO PROJECTS
SELECT * FROM NEW_PROJECTS
WHERE NEW_PROJECTS.START_DATE > ��6-JUN-1994��;

I know the above can work. But my question is:

Can I add an "ORDER BY" to the SELECT? If yes, how? Something like:

INSERT INTO PROJECTS
SELECT * FROM NEW_PROJECTS
ORDER BY ...

doesn't work.

If not, what to do if I want to insert into one table with some rows from
another dataset which is somehow sorted?

Rgds!

TR@SOE
Technical Details
Message-ID: <3df890a9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 114a0e,6bb88fb582a62a8a,start
X-Google-Attributes: gid114a0e,public
X-Google-ArrivalTime: 2002-12-12 05:39:30 PST
From: "TR@SOE" <tr@netease.com>
Newsgroups: borland.public.interbase.sql
Subject: INSERT INTO with SELECT
Date: Thu, 12 Dec 2002 21:35:34 +0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 211.167.135.131
Message-ID: <3df890a9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039700137 211.167.135.131 (12 Dec 2002 05:35:37 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail