XML_sql2xml (Previous) (Next) 導入

View this page in Last updated: Sun, 17 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

導入

導入 -- 簡単な変換

データベースの例

このチュートリアルで、 例として使われるデータベーステーブルです。

mysql> select * from bands;
+----+--------------+------------+-------------+-------------+
| id | name         | birth_year | birth_place | genre       |
+----+--------------+------------+-------------+-------------+
|  1 | The Blabbers |       1998 | London      | Rock'n'Roll |
|  2 | Only Stupids |       1997 | New York    | Hip Hop     |
+----+--------------+------------+-------------+-------------+

mysql> select * from albums;
+----+---------+------------------+------+-----------------+
| id | bandsID | title            | year | comment         |
+----+---------+------------------+------+-----------------+
|  1 |       1 | BlaBla           | 1998 | Their first one |
|  2 |       1 | More Talks       | 2000 | The second one  |
|  3 |       2 | All your base... | 1999 | The Classic     |
+----+---------+------------------+------+-----------------+

結合クエリに基づいて変換

もしクエリの結果が結合されたテーブルならば、 XML データ構造は入れ子になり DBMS がどのようにテーブルを結合したかを表します。 この振る舞いは setOptions() のオプションキー 'nested' を使って有効にしたり無効にしたりできます。 デフォルトの値は TRUE - 入れ子は有効。

もし入れ子を無効にした場合、 XML 構造の列は平坦になります。

XML_sql2xml (Previous) (Next) 導入

Download Documentation Last updated: Sun, 17 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.