Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Database export: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
m template edit
Línia 1: Línia 1:
{{Databases}}
{{Database activity module}}
The [[Database_templates#List_template|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.
The [[Database_templates#List_template|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 ==
== Header ==
Línia 31: Línia 32:


* [[Adding a database entry]] - including import.
* [[Adding a database entry]] - including import.
[[Category:Database]]


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

Revisió del 13:56, 11 ago 2009

Plantilla:Database activity module 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.

Import

To import, go to the "Add Entry" page - Adding_a_database_entry.

See also