Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Copy Table (https://www.delphipraxis.net/176361-copy-table.html)

danten 30. Aug 2013 13:25

Datenbank: AbsoluteDatabase • Version: 1 • Zugriff über: 1

Copy Table
 
Hi all.
How can I copy data from one table to another table for DBGrid.Visible conditions.
thank you

Medium 30. Aug 2013 13:47

AW: Copy Table
 
Zitat:

Zitat von danten (Beitrag 1226675)
Hi all.
How can I copy data from one table to another table...

up until here, I can follow.
Zitat:

...for DBGrid.Visible conditions.
this part however needs some explaining.

Copying tables in SQL is rather easy. Create a second table with an identical structure like the one you want to copy, and then
SQL-Code:
INSERT INTO myNewTable SELECT * FROM originalTable
will fill it with a full copy. (It gets a bit trickier when triggers and/or constraints are present.) So far, I don't know how a DBGrid is relevant to the copying itself.

danten 30. Aug 2013 14:28

AW: Copy Table
 
DBGrid =>> Export to SQL ?

Perlsau 30. Aug 2013 20:03

AW: Copy Table
 
Zitat:

Zitat von danten (Beitrag 1226682)
DBGrid =>> Export to SQL ?

DBGrid is a visual component to show data of a query or dataset.

What do you want to do? Export the contents of a query to SQL-Text? Maybe you should train your English or look for a forum in your language ...

Furtbichler 30. Aug 2013 20:37

AW: Copy Table
 
Zitat:

Zitat von danten (Beitrag 1226682)
DBGrid =>> Export to SQL ?

Sorry, Daniel. I could not find the word '=>>' in my english dictionary. Even google translate couldn't help.

Would you mind to put your brain in gear, especially the part responsible for human communication. Thank you.

To put it in simple words: Describe what you want, in full full english sentences. Explain your goal. Show what you have tried so far.

BTW: You may use '=>>' in your programming environment.

olaf 1. Sep 2013 09:06

AW: Copy Table
 
Hello,

have a look to these examples:

BatchMove
CopyTable

You can find them in the Demo-files of absolut database.

Olaf


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:25 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