PDF (US Ltr)
- 1.4Mb
PDF (A4)
- 1.4Mb
このページは機械翻訳したものです。
垂直フォーマットオプションでは、\G
クエリー終了記号を SQL クエリーに使用する場合と同じ方法で、水平テーブルではなく垂直方向に結果セットが出力されます。 縦方向の書式は、長いテキスト行が出力の一部であるほど読みやすくなります。
この出力形式を取得するには、--result-format=vertical
コマンドラインオプション (またはそのエイリアス --vertical
) を使用して MySQL Shell を起動するか、MySQL Shell 構成オプション resultFormat
を vertical
に設定します。
例 5.3 垂直形式での出力
Press CTRL+C to copyMySQL localhost:33060+ ssl world_x JS > shell.options.set('resultFormat','vertical') MySQL localhost:33060+ ssl world_x JS > session.sql("select * from city where countrycode='AUT'") *************************** 1. row *************************** ID: 1523 Name: Wien CountryCode: AUT District: Wien Info: {"Population": 1608144} *************************** 2. row *************************** ID: 1524 Name: Graz CountryCode: AUT District: Steiermark Info: {"Population": 240967} *************************** 3. row *************************** ID: 1525 Name: Linz CountryCode: AUT District: North Austria Info: {"Population": 188022} *************************** 4. row *************************** ID: 1526 Name: Salzburg CountryCode: AUT District: Salzburg Info: {"Population": 144247} *************************** 5. row *************************** ID: 1527 Name: Innsbruck CountryCode: AUT District: Tiroli Info: {"Population": 111752} *************************** 6. row *************************** ID: 1528 Name: Klagenfurt CountryCode: AUT District: Kärnten Info: {"Population": 91141} 6 rows in set (0.0027 sec)