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 activity import: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
(info copied from 1.9 help file)
Cap resum de modificació
Línia 1: Línia 1:
{{Database activity module}}
{{Database}}
<p class="note">'''Please refer to [[TOC_with_notes#Database|these notes]] before editing this page.'''</p>


Location: ''Settings > Database activity administration > Import'' in Moodle 2.0 onwards and via the 'Add entry' tab in Moodle 1.9.
Location: ''Settings > Database activity administration > Import''  





Revisió del 12:59, 24 maig 2011

Please refer to these notes before editing this page.

Location: Settings > Database activity administration > Import


Database activity entries may be imported by uploading a text file. The easiest way to determine the format of the text file is to manually add an entry to the database and then export it. The resulting export text file may then be edited and used for importing entries.

CSV means Comma-Separated-Values and is a common format for text interchange.

The expected file format is a plain text file with a list of field names as the first record. The data then follows, one record per line.

The field delimiter defaults to a comma character and the field enclosure is not set by default (field enclosures are characters that surround each field in each record).

Records should be delimited by new lines (usually generated by pressing RETURN or ENTER in your text editor). Tabs can be specified using \t and newlines by \n.

Sample file:

 name,height,weight
 Kai,180cm,80kg
 Kim,170cm,60kg
 Koo,190cm,20kg

Warning: all field types may not be supported.

See also