Exporting BASE tables to text?

Discuss the database features
Post Reply
horst.graben
Posts: 7
Joined: Fri Nov 30, 2007 12:10 pm

Exporting BASE tables to text?

Post by horst.graben »

The subject just about says it all!

Can one export tables to text files (without copy and paste) ?

Thank you!
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: Exporting BASE tables to text?

Post by DrewJensen »

Tools > SQL

In the SQL window enter the following:
SELECT * INTO TEXT "Table1TXT" FROM "Table1";
DROP TABLE "Table1TXT";
Execute the statements.

Assuming you had a table named Table1, you now have a file named Table1TXT.csv in the same directory as the Base file.

The default settings are for commas separating fields, nothing quoted IIRC. For specifics on setting options look at
HSQLdb Users Manual

Drew
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Post Reply