Subject | Re: [firebird-support] Insert select from and SQL standard |
---|---|
Author | Martijn Tonies |
Post date | 2005-10-03T11:13:46Z |
Hi,
Correct.
Sounds like an SQL parser error.
Known error.
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
> I've got a question concerning "insert select from". What is supposed toa_table_name (yes, with the same table name) according to the SQL standard ?
> do a statement like this one : insert into a_table_name select * from
> I know this kind of statement has no particular interest; but I ask thequestion because I don't
> have the same result using FB, Oracle, PostgreSQL and MySQL :of rows and duplicated data,
>
> - With Oracle and PostgreSQL the result is a table with twice the number
Correct.
> - With MySQL, the request fails with error : ERROR 1066: Not uniquetable/alias: 'a_table_name',
Sounds like an SQL parser error.
> -With FB 1.5 or 2.0, if the table is empty, then the result is an emptytable, else FB loops forever.
Known error.
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com