Database export: Różnice pomiędzy wersjami

Z MoodleDocs
Skocz do:nawigacja, szukaj
Nie podano opisu zmian
(redirect , having copied content)
 
(Nie pokazano 4 wersji utworzonych przez jednego użytkownika)
Linia 1: Linia 1:
{{Database}}
#redirect [[Building_Database]]
<p class="note">'''Please refer to [[TOC_with_notes#Database|these notes]] before editing this page.'''</p>
 
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 ==
 
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.
 
== Import ==
 
To import, go to the "Add Entry" page - [[Adding_a_database_entry]].
 
==See also==
 
* [[Adding a database entry]] - including import.
 
[[de:Datenbank_Export]]
[[ru:Экспорт базы данных]]
[[ja:データベースのエクスポート]]

Aktualna wersja na dzień 20:08, 26 wrz 2011

Przekierowanie do: