![]() |
Datenbank: Firebird • Version: 1.5 • Zugriff über: Turbo Delphi for .NET with BDP-Components
Ambiguous field names in firebird system tables
When I try to access any table in my Firebird database with a simple Select statement, I got the error message "Amgiguous field names in RDB$Relations, ...". These are system tables of Firebird. I try to use the BDP components to access my DB. Any help would be appreciated.
|
Re: Ambiguous field names in firebird system tables
Have you looked at the stated table(s)?
|
Re: Ambiguous field names in firebird system tables
Not yet, but i would if you could tell me how and what you are about to find in the "Stated Tables". I don't know how to look at the Stated Tables, but I think it's because I'm a rookie in Firebird, only have worked with SQLServer and Oracle.
|
Re: Ambiguous field names in firebird system tables
I meant the table(s) that was/were meantioned in the error message.
|
Re: Ambiguous field names in firebird system tables
Example:
SQL-Code:
You get all fields from both table as the result set.
SELECT * FROM Mastertable INNER JOIN DetailTable ON MasterTable.keyfield=DetailTable.keyfield
Problem: there are 2 fields with the same name ("keyfield") These fields are called ambiguous fields. It depends on the DBMS how this conflict is solved. Some databases add the tablename as prefix:
Code:
Other databases simply throw a error message.
Mastertable.keyfield, ...., DetailTable.keyfield
You should show your complete SQL-Statement |
Re: Ambiguous field names in firebird system tables
Unfortunately, the tables I've mentioned are tables of the database itself (internal tables not created by me or any other user). So with IBExpert (the tool I use to access the database (modify tables, etc.)) I don't see the internal tables of the Database (i.e. RDB$Relations, etc.). Any help appreciated...
|
Re: Ambiguous field names in firebird system tables
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:
|
Re: Ambiguous field names in firebird system tables
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:19 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz