Subject | RE: [firebird-support] INSERT INTO...SELECT...ORDER BY |
---|---|
Author | Alan McDonald |
Post date | 2004-01-22T08:46:07Z |
> Hello,If you've GROUPed by then you have already ORDERed by - try it without the
>
> I want to insert some ordered records into an empty table, but
> Firebird seems not to support "ORDER BY" in an insert-clause (why
> not???).
>
> Is there any workaround?
>
> Example:
>
> INSERT INTO MANUFACTURER (manufacturer.name, manufacturer.id)
> SELECT iSOURCE.MANUFACTURER_NAME, iSOURCE.MANUFACTURER_ID
> FROM iSOURCE
> GROUP BY iSOURCE.MANUFACTURER_NAME, iSOURCE.MANUFACTURER_ID
> ORDER BY iSOURCE.MANUFACTURER_NAME
ORDER BY clause
Alan