Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ADO: Herausfinden des Tabellen-Alias einer Spalte

Empfohlene Antworten

Veröffentlicht

Moin!

Vielleicht weiß ja einer Rat: Ich habe in Delphi eine Verbindung zu einer MSSQL-Datenbank per ADO-SQLOLEDB-Provider.

In der ausgeführten SELECT-Abfrage werden einige Tabellen mehrfach mit unterschiedlichen Aliases gejoint. Ich möchte nun für jedes Feld des Recordsets herausfinden, aus welcher Tabelle es stammt und vor allem, welchen Alias diese Tabelle hat!

Folgendes Beispiel:

select test.id as testid, blub.id as blubid

from a test

join b blub on (test.id = blub.id)

Jetzt möchte ich folgende Daten haben:

Spaltenalias Spaltenname Tabellenalias Tabellenname

testid id test a

blubid id blub a

Bis auf den Tabellenalias bekomme ich auch alle schön aus den Properties des jeweiligen Feldes heraus. Nur halt den Tabellenalias nicht.

Weiß jemand, ob und wie ich aus einem Recordset diesen Wert pro Spalte herausbekomme, ohne das komplette SQL-Statement durchzuparsen?

Thx schonmal!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.