「データベースのエクスポート」の版間の差分

提供:MoodleDocs
移動先:案内検索
編集の要約なし
 
編集の要約なし
1行目: 1行目:
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] 2007年11月27日 (火) 09:15 (CST)
作成中です - [[利用者:Mitsuhiro Yoshida|Mitsuhiro Yoshida]] 2007年11月27日 (火) 09:15 (CST)


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 [[データベーステンプレート#一覧表示用テンプレート]] 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.


== ヘッダ ==
== ヘッダ ==

2007年11月27日 (火) 15:16時点における版

作成中です - Mitsuhiro Yoshida 2007年11月27日 (火) 09:15 (CST)

The データベーステンプレート#一覧表示用テンプレート 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.

ヘッダ

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

field1,field2,...,fieldN

繰り返しエントリ

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

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

Save the template!

エクスポート

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.