Database export: Skillnad mellan sidversioner

Från MoodleDocs
Hoppa till:navigering, sök
Ingen redigeringssammanfattning
Ingen redigeringssammanfattning
Rad 26: Rad 26:
[[Category:Database]]
[[Category:Database]]


[[de:Datenbank_Export]]
[[ru:Экспорт базы данных]]
[[ru:Экспорт базы данных]]
[[ja:データベースのエクスポート]]
[[ja:データベースのエクスポート]]

Versionen från 28 januari 2009 kl. 12.00

The list template can be used to export your database as a CSV file in the following way. It is assumed that you have a database with N fields, and that in this example the fields are named field1, field2 ... until fieldN.

Header

In the header create a comma separated list of the field names

field1,field2,...,fieldN

Repeated entry

In the repeated entry create a comma separated list of the field tags

[[field1]],[[field2]],...,[[fieldN]]

Save the template!

Export

To export, simply select the View List tab and all your data will be in the CSV format. By default only 10 records are displayed, but this can be increased. Copy and paste to your required tool.