🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.delphi.bazy-danych
2 messages
2 total messages Started by Tomasz Witek Thu, 01 Apr 1999 16:06
Master-Detail
#109
Author: Tomasz Witek
Date: Thu, 01 Apr 1999 16:06
36 lines
1560 bytes
Mam taki problem:

Bazy Paradox (podobno 7)

Tabela1
  id : int
  nazwa : char

Tabela2
  id : int
  nazwa : char

Potrzebuje polaczenia:

Tabela1  -->  Tabela2
   1     -->    n


polaczenie oczywiscie po id

aby polaczyc po Master Detail musze miec zdefiniowany index 
dla id z Tabeli2. Nie moze to byc pole kluczowe bo id sie 
powtarzaja. Wiec w Database Desktop tworze secondary index
jak mam wypelniona tabele to wszystko gra dobrze. 
Jesli chce wypelnic ze stworzonym indexem to 
1) jesli index jest wskazany to mam index is read only
2) jesli indeex nie jest wskazany to tabela sie wypelnia
   lecz jesli chcem uzyc to dostaje index out of date


Jak odswierzyc index po wstawieniu rekordow lub jak
wstawiac rekordy z indexem za pomoca TTable

Tiwek

Ps. Mam nadzieje ze mnie rozumiecie
Re: Master-Detail
#110
Author: Tomasz Witek
Date: Thu, 01 Apr 1999 17:28
9 lines
970 bytes
Sorry, ze sam sobie odpowiadam ale znalazlem rozwiazanie

Table2.Close;
Table2.Exclusive:=True;
Table2.Open;
Check(DbiRegenIndexes( Table2.Handle ));
Table2.Close;

Tiwek
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads