AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Datenbanken Firebird Blob Sub_type text kein primary key möglich?
Thema durchsuchen
Ansicht
Themen-Optionen

Firebird Blob Sub_type text kein primary key möglich?

Ein Thema von Monday · begonnen am 5. Jul 2022 · letzter Beitrag vom 7. Jul 2022
 
Monday

Registriert seit: 24. Aug 2012
103 Beiträge
 
FreePascal / Lazarus
 
#1

Firebird Blob Sub_type text kein primary key möglich?

  Alt 5. Jul 2022, 12:59
Datenbank: Firebird • Version: 3/4 • Zugriff über: -
Hallo,

ich lerne mich in Datenbanken ein.

Bei Firebird 4 will ich eine Tabelle anlegen.

Auf ein Feld mit dem Datentyp "blob sub_type text" bzw. "blob sub_type 1" ist es nicht möglich ein Primary key oder unique anzulegen. Habe ich das richtig verstanden? Bei anderen Typen funktioniert es wohl.


Das funktioniert:
Delphi-Quellcode:
create table tabelle (
  a VARCHAR(100) primary key
);
Delphi-Quellcode:
create table tabelle (
  a int not null,
  primary key (a)
);

Das funktioniert nicht:
Delphi-Quellcode:
create table tabelle (
  a blob sub_type text primary key
);
Delphi-Quellcode:
create table tabelle5 (
  a BLOB SUB_TYPE text not null,
  primary key (a)
);
Nur für mein Verständnis.

Ich weiß nicht, warum das nicht funktioniert und ob das so vorgesehen ist oder ein Fehler meinerseits.


Wenn ich einen längeren Text speichern wollte, und nicht blob sub_type text geht wegen primary key, welcher Datentyp ist dann der geeignete?!
  Mit Zitat antworten Zitat
 


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 16:23 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