MySQL 5.1 リファレンスマニュアル :: 14 MySQL Cluster :: 14.9 クラスタ ユーティリティ プログラム :: 14.9.11 ndb_select_count
« 14.9.10 ndb_select_all

14.9.12 ndb_show_tables »
Section Navigation      [Toggle]
  • 14.9 クラスタ ユーティリティ プログラム
  • 14.9.1 ndb_config — NDB 設定情報の抽出
  • 14.9.2 ndb_delete_all — NDB テーブルからのすべての行を削除する
  • 14.9.3 ndb_desc — NDB テーブルの説明
  • 14.9.4 ndb_drop_index
  • 14.9.5 ndb_drop_table
  • 14.9.6 ndb_error_reporter
  • 14.9.7 ndb_print_backup_file
  • 14.9.8 ndb_print_schema_file
  • 14.9.9 ndb_print_sys_file
  • 14.9.10 ndb_select_all
  • 14.9.11 ndb_select_count
  • 14.9.12 ndb_show_tables
  • 14.9.13 ndb_size.pl — NDBCluster サイズ仕様エスティメーター
  • 14.9.14 ndb_waiter

14.9.11. ndb_select_count

説明:1 つ以上の NDB テーブルの行数をプリントします。1 つのテーブルでは、その結果は MySQL ステートメント SELECT COUNT(*) FROM tbl_name を使用して得た結果と同じです。.

使用法:

ndb_select_count [-c connect_string] -ddb_name tbl_name[, tbl_name2[, ...]]

その他のオプション:このアプリケーションに特定のものはありません。しかし、このコマンドを実行したときに、以下の Sample Output に示す様にスペースで分離されたテーブル名を記載することで同じデータベースの複数のテーブルの行計算を取得できます。

サンプル出力:

shell> ./ndb_select_count -c localhost -d ctest1 fish dogs
6 records in table fish
4 records in table dogs

NDBT_ProgramExit: 0 - OK
Copyright © 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Top / Previous / Next / Up / Table of Contents
© 2010, Oracle Corporation and/or its affiliates