AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Prism Ambiguous field names in firebird system tables
Thema durchsuchen
Ansicht
Themen-Optionen

Ambiguous field names in firebird system tables

Ein Thema von agresso · begonnen am 11. Okt 2006 · letzter Beitrag vom 12. Okt 2006
Antwort Antwort
agresso

Registriert seit: 6. Sep 2006
4 Beiträge
 
#1

Ambiguous field names in firebird system tables

  Alt 11. Okt 2006, 10:08
Datenbank: Firebird • Version: 1.5 • Zugriff über: Turbo Delphi for .NET with BDP-Components
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.
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: Ambiguous field names in firebird system tables

  Alt 11. Okt 2006, 10:10
Have you looked at the stated table(s)?
Markus Kinzler
  Mit Zitat antworten Zitat
agresso

Registriert seit: 6. Sep 2006
4 Beiträge
 
#3

Re: Ambiguous field names in firebird system tables

  Alt 11. Okt 2006, 16:29
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.
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#4

Re: Ambiguous field names in firebird system tables

  Alt 11. Okt 2006, 17:44
I meant the table(s) that was/were meantioned in the error message.
Markus Kinzler
  Mit Zitat antworten Zitat
shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#5

Re: Ambiguous field names in firebird system tables

  Alt 11. Okt 2006, 18:03
Example:
SELECT * FROM Mastertable INNER JOIN DetailTable ON MasterTable.keyfield=DetailTable.keyfield You get all fields from both table as the result set.
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:
Mastertable.keyfield, ...., DetailTable.keyfield
Other databases simply throw a error message.
You should show your complete SQL-Statement
Andreas
  Mit Zitat antworten Zitat
agresso

Registriert seit: 6. Sep 2006
4 Beiträge
 
#6

Re: Ambiguous field names in firebird system tables

  Alt 12. Okt 2006, 07:53
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...
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#7

Re: Ambiguous field names in firebird system tables

  Alt 12. Okt 2006, 08:02
Zitat von agresso:
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...
You can tell IBExpert to show the System Tables, too.
Miniaturansicht angehängter Grafiken
ibexpert_976.jpg  
Markus Kinzler
  Mit Zitat antworten Zitat
agresso

Registriert seit: 6. Sep 2006
4 Beiträge
 
#8

Re: Ambiguous field names in firebird system tables

  Alt 12. Okt 2006, 11:14
Zitat von mkinzler:
Zitat von agresso:
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...
You can tell IBExpert to show the System Tables, too.
OK, thanks for that. I'll try that out, trying to find the ambiguous fields...
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:13 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz