PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.1Kb
Man Pages (Zip) - 402.3Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0
You can also use X DevAPI to work with relational tables. In MySQL, each relational table is associated with a particular storage engine. The examples in this section useInnoDB tables in theworld_x schema.
Confirm the Schema
To show the schema that is assigned to thedb global variable, issuedb.
mysql-js> db<Schema:world_x> If the returned value is notSchema:world_x, set thedb variable as follows:
mysql-js> \use world_xSchema `world_x` accessible through db.Show All Tables
To display all relational tables in theworld_x schema, use thegetTables() method on thedb object.
mysql-js> db.getTables(){ "city": <Table:city>, "country": <Table:country>, "countrylanguage": <Table:countrylanguage>}Basic Table Operations
Basic operations scoped by tables include:
| Operation form | Description |
|---|---|
db. | Theinsert() method inserts one or more records into the named table. |
db. | Theselect() method returns some or all records in the named table. |
db. | Theupdate() method updates records in the named table. |
db. | Thedelete() method deletes one or more records from the named table. |
Related Information
SeeWorking with Relational Tables for more information.
CRUD EBNF Definitions provides a complete list of operations.
SeeSection 22.3.2, “Download and Import world_x Database” for instructions on setting up the
world_xschema sample.
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 297.1Kb
Man Pages (Zip) - 402.3Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0