Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: Database export.

Database export: Difference between revisions

From MoodleDocs
No edit summary
(redirect , having copied content)
 
(14 intermediate revisions by 9 users not shown)
Line 1: Line 1:
The [[Database_templates#List_template|list template]] can be used to export your database 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.
#redirect [[Building_Database]]
 
== Header ==
 
In the header create a comma separated list of the field names
 
<pre>
field1,field2,...,fieldN
</pre>
 
== Repeated entry ==
 
In the repeated entry create a comma separated list of the field tags
 
<pre>
[[field1]],[[field2]],...,[[fieldN]]
</pre>
 
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.

Latest revision as of 20:08, 26 September 2011

Redirect to: