SORU
20 Mayıs 2011, Cuma


Nasıl bir CSV dosyası olarak bir sorgu sonucu kaydedebilirim?

SQLite yeniyim. CSV dosyasına bir sorgu sonuçlarını ihracat yapabilirim bir yolu var mı?

CEVAP
30 Temmuz 2013, Salı


Senin csv sütun adları için aşağıdakileri yapabilirsiniz dosya:

sqlite> .headers on
sqlite> .mode csv
sqlite> .output test.csv
sqlite> select * from tbl1;
sqlite> .output stdout

Yaptığınız değişiklikleri doğrulamak için bu komutu çalıştırabilirsiniz:

sqlite> .show

Çıkış:

echo: off   
explain: off   
headers: on   
mode: csv   
nullvalue: ""  
output: stdout  
separator: "|"   
stats: off   
width: 22 18 

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • booba1234

    booba1234

    22 Temmuz 2006
  • gamingbits

    gamingbits

    2 Mayıs 2006
  • TheSalband Rai

    TheSalband R

    11 NİSAN 2011