Ndb_Select_Count; Print Row Counts For Ndb Tables; Ndb_Show_Tables; Display List Of Ndb Tables - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

INSERT INTO dogs VALUES
('', 'Lassie', 'collie'),
('', 'Scooby-Doo', 'Great Dane'),
('', 'Rin-Tin-Tin', 'Alsatian'),
('', 'Rosscoe', 'Mutt');
This demonstrates the use of several additional
shell>
./ndb_select_all -d ctest1 dogs -o ix -z --gci
GCI
id name
834461
2
[Scooby-Doo]
834878
4
[Rosscoe]
834463
3
[Rin-Tin-Tin]
835657
1
[Lassie]
4 rows returned
NDBT_ProgramExit: 0 - OK
17.4.16.

ndb_select_count

ndb_select_count
the result is equivalent to that obtained by using the MySQL statement
tbl_name.
Usage
ndb_select_count [-c connect_string]
The following table includes options that are specific to the MySQL Cluster native backup restoration
program ndb_select_count. Additional descriptions follow the table. For options common to most
MySQL Cluster programs (including ndb_select_count), see
MySQL Cluster Programs — Options Common to MySQL Cluster
Table 17.21.
Format
--database=dbname,
-d
--parallelism=#,
-p
--lock=#,
-l
You can obtain row counts from multiple tables in the same database by listing the table names
separated by spaces when invoking this command, as shown under Sample Output.
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
17.4.17.

ndb_show_tables

ndb_show_tables
not only both user-created tables and
triggers, as well.
ndb_select_count
breed
[Great Dane]
[Mutt]
[Alsatian]
[Collie]

— Print Row Counts for NDB Tables

prints the number of rows in one or more
Options and Variables: MySQL 5.0
ndb_select_count

— Display List of NDB Tables

displays a list of all
— Print Row Counts for NDB Tables
ndb_select_all
-ddb_name
tbl_name[, tbl_name2[, ...]]
Description
Name of the database in which the
table is found
Degree of parallelism
Lock type
database objects in the cluster. By default, this includes
NDB
system tables, but NDB-specific indexes, and internal
NDB
1645
options:
tables. With a single table,
NDB
SELECT COUNT(*) FROM
Section 17.4.20, "Options Common to
Programs".
Added / Removed
All MySQL 5.0
based releases
All MySQL 5.0
based releases
All MySQL 5.0
based releases

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mysql 5.0

Table of Contents