Apache OpenOffice (AOO) Bugzilla – Issue 125655
Cannot save into CSV format
Last modified: 2014-09-22 20:09:31 UTC
Base can only save in .ODF format. To transfer data to other databases in needs to be able to save in more than one format. UK Government exchange format is CSV, but this is not available. When is this and other formats, Dbase, Excel Spreadsheet etc. going to made available?
What do you want to save? Base itself is a container and it makes no sense to save it to CSV. Saving a single table to .csv is a task of the database engine Base links to.
The table data cannot be saved into csv format only .odf format. "Base is the container and the database engine does the work", but it appears nowhere in the application. There is no option to saved the database table data into another format in the application for use by another database, spreadsheet etc. The data can be created in Base, but not used anywhere else! It is not necessarily linked to another database if that is what you mean, why run two?
If you do not have linked it to an external database engine, then likely the embedded HSQL engine is used. You should see "HSQL Database engine" in the status bar. This is a HSQL ver. 1.8. This database engine does not know a single command to export to csv. You need several steps: Create a HSQL "text table": CREATE TEXT TABLE Connect this text table to the desired .csv file and determine such things as delimiter and character encoding: SET TABLE Copy your data from your table into the new, and up to now empty, text table: INSERT INTO Perhaps delete the text table or disconnect it from the .csv file. Find details on text tables in http://hsqldb.org/doc/guide/ch06.html. That way will give you full control over the export. But perhaps this simple solution might already work for you: In menu Tools > SQL... Write command SELECT * INTO TEXT "<file name of export without .csv>" FROM "<name of table to be exported>" Click Execute The .csv file is generated in the same directory as the .odb file. Of cause you have to use your own names instead of the <..> parts. So "Cannot" is not correct. But you are right, it would be nice to have a UI for such export. But that is already tracked in issue 59369. There are other similar request mentioned there. *** This issue has been marked as a duplicate of issue 59369 ***