Frage zu SQL Datenbank

#2868904
Lesenswert?

Hallo,
ich hab hier ne SQL Lite Datenbank-Datei kommt man mit irgendeinem 
Programm an die Daten die in der Datei drinn sind, so das man Sie 
weiterverwenden kann.
Ich bräuchte aus der Datei paar Werte in ner Excel Datei.
Kann mir einer ein Tip geben, wie man das bewerkstellingen könnte ?

gruß,
Björn
#2868911
Lesenswert?

z.B.hier: http://www.sqlite.org/sqlite.html
Auszug:
Writing results to a file
By default, sqlite3 sends query results to standard output. You can 
change this using the ".output" command. Just put the name of an output 
file as an argument to the .output command and all subsequent query 
results will be written to that file. Use ".output stdout" to begin 
writing to standard output again. For example:
    sqlite> .mode list
    sqlite> .separator |
    sqlite> .output test_file_1.txt
    sqlite> select * from tbl1;
    sqlite> .exit
    $ cat test_file_1.txt
    hello|10
    goodbye|20
    $
Oder:

Converting An Entire Database To An ASCII Text File

Use the ".dump" command to convert the entire contents of a database 
into a single ASCII text file. This file can be converted back into a 
database by piping it back into sqlite3.

A good way to make an archival copy of a database is this:

    $ echo '.dump' | sqlite3 ex1 | gzip -c >ex1.dump.gz

This generates a file named ex1.dump.gz that contains everything you 
need to reconstruct the database at a later time, or on another machine. 
To reconstruct the database, just type:

    $ zcat ex1.dump.gz | sqlite3 ex2

The text format is pure SQL so you can also use the .dump command to 
export an SQLite database into other popular SQL database engines. Like 
this:

    $ createdb ex2
    $ sqlite3 ex1 .dump | psql ex2

Hilft Dir das?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren