Subject | Re: [firebird-support] insert with select - union |
---|---|
Author | Martijn Tonies |
Post date | 2004-05-27T20:07:31Z |
Hi,
This is valid:
INSERT INTO ... SELECT ...
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
> >Is there som way to user a union in an insert clausule?Does it?
>
> No; because an insert applies a single input row to a single insert
> row. Any union is implicitly two or more rows.
This is valid:
INSERT INTO ... SELECT ...
> >I just canĀ“t use a View instead.With regards,
>
> Why not?
>
> And, if not, then you'll need to write a selectable stored procedure to
> pump the output of a union into a table <shudder>
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com