Board index » delphi » Create db table

Create db table


2004-04-27 08:02:09 PM
delphi34
How can i create this tables in run time in delphi 7?
And How do set the properis on TTables or can i use form wizard??
Word Chapter Book
- ID - ID - ID
- Chapter_ID - Book_ID - ?
- Word - Chapter
- Description
Sample data:
Book Chapter Word
----- --------- --------
ABC 1 Assure
ABC 1 Caption
ABC 2 Bear
ABC 2 Admit
ABC 3 Moos
XMan 5 poo
And so on....
 
 

Re:Create db table

Depend on db backend.... or if you want is do a in-memory dataset.
The vast çmayority of databses use CREATE TABLE syntax...check your db
documentation
For datasets, look at help with FieldDefs...
 

Re:Create db table

mamcx writes:
Quote
Depend on db backend.... or if you want is do a in-memory dataset.
I will save it on files like paradox.

The vast çmayority of databses use CREATE TABLE syntax...check your db
documentation

For datasets, look at help with FieldDefs...
Were is the best help file for FieldDefs?
I haw try to search with Google?
Quote