# CoraDB Manual

> Official documentation for CoraDB, a hybrid relational + graph database (ANSI SQL plus SELECT … MATCH graph queries over vertex and edge tables). Every page is also available as Markdown: add the link from the list below, or replace `.html` with `.md` under https://www.coradb.ai/manual/markdown/.

Examples use the e-commerce sample database (https://www.coradb.ai/manual/sample-database.html).

## Getting started

- [CoraDB Manual](https://www.coradb.ai/manual/markdown/index.md): Official CoraDB 1.0 documentation: install CoraDB, write SQL and graph queries with SELECT … MATCH, administer databases, use the drivers.
- [corasql interpreter](https://www.coradb.ai/manual/markdown/corasql.md): Use corasql, the CoraDB command-line SQL interpreter: interactive, batch and standalone modes, its options and session commands.
- [Demo databases](https://www.coradb.ai/manual/markdown/demo-databases.md): The ten demo databases included with CoraDB: relational, graph and hybrid datasets such as e-commerce, Northwind and Sakila, with schemas.
- [Environment variables and ports](https://www.coradb.ai/manual/markdown/env.md): CoraDB environment variables (CORADB, CORADB_DATABASES, ...), PATH and JAVA_HOME settings, locales, and the TCP ports CoraDB uses.
- [Installing and running CoraDB on Linux and Windows](https://www.coradb.ai/manual/markdown/install.md): Install CoraDB on 64-bit Linux (.sh, RPM, tar.gz) or Windows (installer, zip), set the environment and create your first database.
- [Installing and upgrading CoraDB](https://www.coradb.ai/manual/markdown/install_upgrade.md): Install CoraDB on Linux or Windows, set the CORADB environment variables and ports, upgrade an existing installation and its databases, or uninstall CoraDB.
- [What is CoraDB?](https://www.coradb.ai/manual/markdown/intro.md): CoraDB is a hybrid relational and graph database. Learn its architecture (server, master, broker, CAS), volumes, logs and main features.
- [Query tools: corasql and drivers](https://www.coradb.ai/manual/markdown/qrytool.md): Tools for running SQL against CoraDB: the corasql command-line interpreter, and the drivers (JDBC, Node.js, PHP, .NET, Python, C).
- [Quick start](https://www.coradb.ai/manual/markdown/quick_start.md): Get CoraDB running in minutes: start the CoraDB service, open a demo database or create your own, and run your first relational, graph and hybrid queries.
- [Sample database: e-commerce](https://www.coradb.ai/manual/markdown/sample-database.md): The CoraDB e-commerce sample database used by the examples: a hybrid schema of tables, vertex and edge tables, row counts and loading.
- [Getting started with CoraDB](https://www.coradb.ai/manual/markdown/start.md): First steps with CoraDB: start the service, open a database, run SQL and graph queries with corasql, and connect applications.
- [About this manual](https://www.coradb.ai/manual/markdown/toc.md): How the CoraDB manual is organized, its terms and typographic conventions, the sample database behind the examples, and version numbers.
- [Uninstalling CoraDB](https://www.coradb.ai/manual/markdown/uninstall.md): Remove CoraDB from Linux (.sh, tar.gz or RPM) and Windows: stop the service, delete the databases and remove the software.
- [Upgrading CoraDB](https://www.coradb.ai/manual/markdown/upgrade.md): Upgrade CoraDB to a new version: back up, migrate databases with unloaddb and loaddb, recreate locales and restart the services.

## Administration

- [CoraDB administration](https://www.coradb.ai/manual/markdown/admin.md): Administering CoraDB: control the service and its processes, create, back up and restore databases, set system parameters, troubleshoot.
- [Backup and restore: backupdb, restoredb](https://www.coradb.ai/manual/markdown/admin/admin_backup.md): Back up CoraDB databases online or offline with coradb backupdb (full, incremental, compressed) and restore to a point in time with coradb restoredb.
- [Diagnostics: checkdb, diagdb, paramdump](https://www.coradb.ai/manual/markdown/admin/admin_diag.md): Check database consistency with coradb checkdb, dump internal structures with coradb diagdb, and print the effective system parameters with coradb paramdump.
- [Space and statistics: spacedb, compactdb, optimizedb, plandump, vacuumdb](https://www.coradb.ai/manual/markdown/admin/admin_space.md): Check and reclaim database space with coradb spacedb, compactdb and vacuumdb, update statistics with optimizedb and inspect plans with plandump.
- [Server statistics: statdump](https://www.coradb.ai/manual/markdown/admin/admin_statdump.md): Monitor the CoraDB server with coradb statdump: interval and cumulative output, and what the I/O, buffer, lock, query and network counters mean.
- [Locks and transactions: lockdb, tranlist, killtran](https://www.coradb.ai/manual/markdown/admin/admin_transactions.md): Inspect locks with coradb lockdb, list running transactions and their queries with coradb tranlist, and end transactions with coradb killtran.
- [Unload and load: unloaddb, loaddb](https://www.coradb.ai/manual/markdown/admin/admin_unload.md): Export CoraDB schemas and data with coradb unloaddb and load them with coradb loaddb: options, file format, errors and moving databases.
- [coradb utilities](https://www.coradb.ai/manual/markdown/admin/admin_utils.md): Reference of the coradb utilities: createdb, addvoldb, deletedb, renamedb, copydb, installdb, locale, time zone and TDE key commands.
- [System parameters](https://www.coradb.ai/manual/markdown/admin/config.md): Configure CoraDB with coradb.conf and coradb_broker.conf, change parameters with SET SYSTEM PARAMETERS, and look up every server parameter.
- [Broker parameters](https://www.coradb.ai/manual/markdown/admin/config_broker.md): Reference for coradb_broker.conf: broker-wide parameters and per-broker parameters for access, CAS processes, transactions and queries, and logging.
- [Error log, lock, logging and transaction parameters](https://www.coradb.ai/manual/markdown/admin/config_logging.md): CoraDB server parameters for the error log, locking and isolation, transaction logs, checkpoints, archives and transaction processing.
- [Utility, graph and other parameters](https://www.coradb.ai/manual/markdown/admin/config_other.md): CoraDB server parameters for utilities, graph storage and queries, access control, Java stored procedures, TDE and other settings.
- [Connection, memory, disk and thread parameters](https://www.coradb.ai/manual/markdown/admin/config_resources.md): CoraDB parameters for connections, memory buffers, disk volumes and threads: coradb_port_id, max_clients, data_buffer_size and more.
- [SQL statement, type, timezone and cache parameters](https://www.coradb.ai/manual/markdown/admin/config_sql.md): CoraDB parameters that change SQL behavior (ansi_quotes, pipes_as_concat, ...), the time zone, and the query plan and result caches.
- [Controlling CoraDB processes: coradb service, server, broker](https://www.coradb.ai/manual/markdown/admin/control.md): Start, stop and check CoraDB with the coradb utility: the service, database servers, brokers, CMS and the Java SP server.
- [Broker: start, stop, status, access control and logs](https://www.coradb.ai/manual/markdown/admin/control_broker.md): Control CoraDB brokers and CAS processes: start, stop, status, ACLs, packet encryption, run-time parameters, SQL and access logs.
- [Java SP server: start, stop, configuration and logs](https://www.coradb.ai/manual/markdown/admin/control_javasp.md): Run the CoraDB Java SP server with coradb javasp start, stop and status, configure its JVM, port and options, and read its logs.
- [CoraDB Manager Server (CMS)](https://www.coradb.ai/manual/markdown/admin/control_manager.md): Start and stop the CoraDB Manager Server (CMS) with coradb manager, configure it in cm.conf and manage its users with cm_admin.
- [Database server: start, stop, access control, logs and errors](https://www.coradb.ai/manual/markdown/admin/control_server.md): Control CoraDB database servers with coradb server start, stop and status, limit client access, and read the server error log.
- [Database management: databases.txt, volumes and logs](https://www.coradb.ai/manual/markdown/admin/db_manage.md): How CoraDB finds databases through databases.txt, the files of a database (data, log, archive, double write buffer) and the DBA and PUBLIC users.
- [DDL audit log](https://www.coradb.ai/manual/markdown/admin/ddl_audit.md): Record every DDL statement run through CAS, corasql and loaddb in CoraDB audit logs: enabling ddl_audit_log, file names and line format.
- [Troubleshooting: SQL logs, slow queries and the server error log](https://www.coradb.ai/manual/markdown/admin/troubleshoot.md): Find the cause of CoraDB errors and slow queries with the CAS SQL logs, JDBC and CCI logs, and the server error log.

## Drivers and APIs

- [Drivers and APIs](https://www.coradb.ai/manual/markdown/api.md): Connect applications to CoraDB with the official drivers for Java (JDBC), Node.js, PHP, .NET, Python and C. No native client library needed.
- [ADO.NET data provider](https://www.coradb.ai/manual/markdown/api/adodotnet.md): Use CoraDB from C# and .NET 8 with CoraDB.Data, a fully managed ADO.NET provider: connect, query, transactions, graph queries and migration.
- [ADO.NET data provider API reference](https://www.coradb.ai/manual/markdown/api/adodotnet-api.md): Complete API of CoraDB.Data, the ADO.NET provider: connections, commands, parameters, readers, transactions, LOBs, errors and type mapping.
- [CCI overview](https://www.coradb.ai/manual/markdown/api/cci.md): CCI, the C API for CoraDB: connect from C and C++ through the broker, prepare and execute statements, fetch results, transactions and LOBs.
- [CCI (C API)](https://www.coradb.ai/manual/markdown/api/cci_index.md): CCI, the CoraDB C API: overview of the C client interface used to connect to CoraDB from C and C++ programs, and the reference of all CCI functions.
- [CCI API reference: connections and utilities](https://www.coradb.ai/manual/markdown/api/cciapi.md): CCI reference for connections: cci_connect, connection URLs and properties, connection pools, timeouts, version and error information.
- [CCI API reference: statements and results](https://www.coradb.ai/manual/markdown/api/cciapi_query.md): CCI reference for running SQL: cci_prepare, cci_execute, parameter binding, batches, fetching rows, result metadata and query plans.
- [CCI API reference: transactions and session settings](https://www.coradb.ai/manual/markdown/api/cciapi_transaction.md): CCI reference for transactions and sessions: cci_end_tran, savepoints, auto-commit, isolation level, lock timeout and holdability.
- [CCI API reference: LOBs, collections and OIDs](https://www.coradb.ai/manual/markdown/api/cciapi_types.md): CCI reference for special types: BLOB and CLOB functions, SET, MULTISET and LIST functions, OIDs and column type information.
- [JDBC driver](https://www.coradb.ai/manual/markdown/api/jdbc.md): Connect Java applications to CoraDB with the JDBC driver: connection URL and properties, pools, statements, transactions, LOBs and graph queries.
- [Node.js driver](https://www.coradb.ai/manual/markdown/api/node_js.md): Use CoraDB from Node.js and TypeScript with node-coradb: connect, bind parameters, stream results, transactions, graph queries and migration.
- [Node.js driver API reference](https://www.coradb.ai/manual/markdown/api/node_js-api.md): Complete API of node-coradb, the Node.js driver for CoraDB: queries, streams, cursors, prepared statements, transactions, errors and options.
- [PHP driver](https://www.coradb.ai/manual/markdown/api/php.md): Use CoraDB from PHP with coradb-php, a pure-PHP driver: connect, prepared statements, transactions, graph queries and migration from CUBRID.
- [PHP driver API reference](https://www.coradb.ai/manual/markdown/api/php-api.md): Complete API of the CoraDB PHP driver: Connection, Statement, data types, batches, schema information, LOBs, errors and coradb_* functions.
- [Python driver](https://www.coradb.ai/manual/markdown/api/python.md): Use CoraDB from Python with pycoradb, a pure-Python DB-API 2.0 driver: connect, query, transactions, LOBs, graph queries and migration.
- [Python driver API reference](https://www.coradb.ai/manual/markdown/api/python-api.md): Complete API of pycoradb, the DB-API 2.0 Python driver for CoraDB: connect() options, connections, cursors, LOBs, types and exceptions.

## Graph

- [Tutorial: tables and graphs in one database](https://www.coradb.ai/manual/markdown/graph/graph_getting_started.md): Step-by-step CoraDB tutorial: create tables and a graph in one database, query the graph with MATCH and combine both in one query.
- [MATCH clause: graph queries in SELECT](https://www.coradb.ai/manual/markdown/graph/match.md): Query graphs in CoraDB with SELECT … FROM MATCH: node and edge patterns, variable-length and shortest paths, and joins with tables.

## Security

- [Security: packet encryption, ACL, privileges and TDE](https://www.coradb.ai/manual/markdown/security.md): CoraDB security: SSL/TLS packet encryption, access control lists for brokers and servers, users and privileges, and Transparent Data Encryption.

## SQL reference

- [CoraDB SQL reference](https://www.coradb.ai/manual/markdown/sql.md): Reference for CoraDB SQL: data types, DDL and DML, operators and functions, graph queries, optimization, transactions and the system catalog.
- [Users & privileges: CREATE USER, GRANT, REVOKE](https://www.coradb.ai/manual/markdown/sql/authorization.md): Manage CoraDB users and groups with CREATE, ALTER and DROP USER, grant and revoke privileges, and change object owners with OWNER TO.
- [System catalog](https://www.coradb.ai/manual/markdown/sql/catalog.md): Read schema information from the CoraDB system catalog with SQL: tables, columns, indexes, privileges, partitions and triggers.
- [System catalog classes](https://www.coradb.ai/manual/markdown/sql/catalog_classes.md): Reference of the CoraDB system catalog classes (_db_class, _db_attribute, _db_index, _db_auth, ...) with their columns and example queries.
- [System catalog views](https://www.coradb.ai/manual/markdown/sql/catalog_views.md): Reference of the CoraDB system catalog views (db_class, db_attribute, db_index, db_auth, db_trig, ...) with their columns and example queries.
- [Comments](https://www.coradb.ai/manual/markdown/sql/comment.md): How to write comments in CoraDB SQL: line comments with -- and //, block comments with /* */, and the /*+ */ form used for optimizer hints.
- [Data types and implicit type conversion](https://www.coradb.ai/manual/markdown/sql/datatype.md): Overview of the CoraDB data types (numeric, date/time, strings, LOBs, collections, JSON, graph) and the rules for implicit type conversion.
- [Collection types: SET, MULTISET, LIST/SEQUENCE](https://www.coradb.ai/manual/markdown/sql/datatype_collection.md): CoraDB collection types SET, MULTISET and LIST: collection columns and literals, duplicates and order, conversions and restrictions.
- [Date/time types: DATE, TIME, TIMESTAMP, DATETIME and time zones](https://www.coradb.ai/manual/markdown/sql/datatype_datetime.md): CoraDB date and time types DATE, TIME, TIMESTAMP and DATETIME: ranges, literals, string conversion and the time zone types.
- [Graph types: GRAPH_OBJECT and PATH](https://www.coradb.ai/manual/markdown/sql/datatype_graph.md): The CoraDB graph data types: GRAPH_OBJECT, a reference to any vertex or edge, and PATH, the value of a path variable in MATCH.
- [JSON data type](https://www.coradb.ai/manual/markdown/sql/datatype_json.md): The CoraDB JSON type: creating and validating JSON, JSON Schema constraints, conversion to and from SQL types, JSON paths and pointers.
- [BLOB and CLOB types](https://www.coradb.ai/manual/markdown/sql/datatype_lob.md): Store large binary and text objects in CoraDB with BLOB and CLOB: external LOB files, LOB columns, reading and writing LOB values.
- [Numeric types: INTEGER, BIGINT, NUMERIC, DOUBLE](https://www.coradb.ai/manual/markdown/sql/datatype_numeric.md): CoraDB numeric types SMALLINT, INTEGER, BIGINT, NUMERIC, FLOAT and DOUBLE: ranges, precision and scale, rounding, literals and overflow.
- [String types: CHAR, VARCHAR, BIT and ENUM](https://www.coradb.ai/manual/markdown/sql/datatype_string.md): CoraDB string types CHAR, VARCHAR and STRING (length, padding, comparison), the bit string types BIT and BIT VARYING, and ENUM.
- [Database administration statements](https://www.coradb.ai/manual/markdown/sql/db_admin.md): SQL statements for administering CoraDB: users and privileges, SET for parameters and variables, SHOW for information, and KILL.
- [Operators and functions](https://www.coradb.ai/manual/markdown/sql/function.md): Overview of CoraDB SQL operators and built-in functions: comparison, arithmetic and set operators, and string, date, JSON and graph functions.
- [Aggregate and analytic functions: SUM, AVG, COUNT, RANK, LAG, PERCENTILE_CONT and more](https://www.coradb.ai/manual/markdown/sql/function/analysis_fn.md): CoraDB aggregate functions (COUNT, SUM, AVG, GROUP_CONCAT, ...) and analytic window functions (RANK, ROW_NUMBER, LAG, LEAD, ...).
- [Arithmetic operators](https://www.coradb.ai/manual/markdown/sql/function/arithmetic_op.md): CoraDB arithmetic operators (+, -, *, /, DIV, MOD) on numbers and dates: result types, overflow and division by zero.
- [Bit functions and operators](https://www.coradb.ai/manual/markdown/sql/function/bit_fn.md): CoraDB bitwise operators &, |, ^, ~, << and >>, the aggregate functions BIT_AND, BIT_OR and BIT_XOR, and BIT_COUNT, with verified examples.
- [Click counter functions: INCR and DECR](https://www.coradb.ai/manual/markdown/sql/function/clickcounter_fn.md): Count views and clicks in CoraDB with INCR and DECR, which read a row and change a counter column in the same SELECT.
- [Comparison operators](https://www.coradb.ai/manual/markdown/sql/function/comparison_op.md): CoraDB comparison operators (=, <=>, <>, >, <, IS NULL, ...): how strings, numbers, dates, collections and NULL are compared.
- [Conditional functions](https://www.coradb.ai/manual/markdown/sql/function/condition_fn.md): CoraDB conditional functions COALESCE, DECODE, GREATEST, LEAST, IF, IFNULL, NVL, NVL2 and NULLIF, and the type of their result.
- [Conditional expressions: ANY/ALL, BETWEEN, EXISTS, IN, IS NULL, LIKE and CASE](https://www.coradb.ai/manual/markdown/sql/function/condition_op.md): CoraDB search conditions: ANY, SOME and ALL, BETWEEN, EXISTS, IN, IS NULL, LIKE with wildcards, and the CASE expression.
- [Containment operators](https://www.coradb.ai/manual/markdown/sql/function/containment_op.md): CoraDB containment operators for collection types (SET, MULTISET, LIST): SETEQ, SETNEQ, SUPERSET, SUBSET, SUPERSETEQ and SUBSETEQ, with verified examples.
- [Date/time functions: ADDDATE, DATEDIFF, EXTRACT, TRUNC, FROM_UNIXTIME and more](https://www.coradb.ai/manual/markdown/sql/function/datetime_fn.md): CoraDB date and time functions: current time, adding intervals, date differences, extracting fields, truncating, Unix time and time zones.
- [Encryption functions](https://www.coradb.ai/manual/markdown/sql/function/encryption_fn.md): CoraDB hash functions MD5, SHA1 and SHA2 with verified examples, and how to compute checksums of strings and values.
- [Graph functions](https://www.coradb.ai/manual/markdown/sql/function/graph_fn.md): CoraDB graph functions: nodes(), relationships(), path_size(), path_comp(), LABEL() and the JSON graph functions, with examples.
- [Information functions](https://www.coradb.ai/manual/markdown/sql/function/information_fn.md): CoraDB information functions: CURRENT_USER, DATABASE, VERSION, CHARSET, COLLATION, LAST_INSERT_ID, ROW_COUNT, DISK_SIZE and more.
- [JSON functions: JSON_EXTRACT, JSON_TABLE, JSON_SET and more](https://www.coradb.ai/manual/markdown/sql/function/json_fn.md): Create, query and modify JSON in CoraDB SQL: JSON_OBJECT, JSON_EXTRACT and ->, JSON_SET, JSON_TABLE and JSON views of graphs.
- [List functions: COLLECT_LIST, FIRST, LAST, AT, TAIL, SIZE, RANGE, LIST_COMP, REDUCE](https://www.coradb.ai/manual/markdown/sql/function/list_fn.md): Build and process lists in CoraDB SQL: COLLECT_LIST, FIRST, LAST, AT, TAIL, SIZE, RANGE, and LIST_COMP and REDUCE.
- [LOB functions](https://www.coradb.ai/manual/markdown/sql/function/lob_fn.md): CoraDB functions for BLOB and CLOB values: CHAR_TO_CLOB, CLOB_TO_CHAR, CLOB_LENGTH, BLOB_FROM_FILE and more, with examples.
- [Logical operators](https://www.coradb.ai/manual/markdown/sql/function/logical_op.md): CoraDB logical operators AND (&&), OR, XOR and NOT (!), with their three-valued truth table for TRUE, FALSE and NULL, and how numbers are treated as booleans.
- [Numeric and mathematical functions](https://www.coradb.ai/manual/markdown/sql/function/numeric_fn.md): CoraDB numeric functions with examples: ABS, CEIL, FLOOR, ROUND, TRUNC, MOD, POWER, SQRT, LOG, RAND, trigonometry and more.
- [Other functions](https://www.coradb.ai/manual/markdown/sql/function/other_fn.md): CoraDB utility functions: BENCHMARK times an expression, SLEEP pauses a statement, and SYS_GUID returns a random identifier.
- [List predicates: ALL, ANY, NONE and SINGLE](https://www.coradb.ai/manual/markdown/sql/function/predicate_fn.md): Test the elements of a collection in CoraDB SQL with the ALL, ANY, NONE and SINGLE list predicates: syntax, NULL rules, examples.
- [Regular expression functions: REGEXP, REGEXP_LIKE, REGEXP_REPLACE, REGEXP_SUBSTR](https://www.coradb.ai/manual/markdown/sql/function/regex_fn.md): Regular expressions in CoraDB SQL: REGEXP and RLIKE, REGEXP_COUNT, REGEXP_INSTR, REGEXP_LIKE, REGEXP_REPLACE and REGEXP_SUBSTR.
- [ROWNUM, INST_NUM, ORDERBY_NUM and GROUPBY_NUM](https://www.coradb.ai/manual/markdown/sql/function/rownum_fn.md): Number result rows in CoraDB with ROWNUM, INST_NUM, ORDERBY_NUM and GROUPBY_NUM, when each is evaluated, and LIMIT.
- [Set arithmetic operators](https://www.coradb.ai/manual/markdown/sql/function/set_op.md): Union (+), difference (-) and intersection (*) of CoraDB collection values (SET, MULTISET, LIST), and the result type.
- [Statement set operators: UNION, EXCEPT, INTERSECT](https://www.coradb.ai/manual/markdown/sql/function/stmt_set_op.md): Combine CoraDB query results with UNION, UNION ALL, EXCEPT and INTERSECT, with and without duplicates, with examples.
- [String functions: CONCAT, SUBSTR, REPLACE, TRIM, LPAD and more](https://www.coradb.ai/manual/markdown/sql/function/string_fn.md): CoraDB string functions and concatenation: length, case, padding, trimming, searching, extracting, replacing and encoding.
- [Data type conversion functions: CAST, TO_CHAR, TO_DATE, TO_NUMBER, DATE_FORMAT](https://www.coradb.ai/manual/markdown/sql/function/typecast_fn.md): Convert values between types in CoraDB SQL: CAST, TO_CHAR, TO_DATE, TO_NUMBER, DATE_FORMAT, STR_TO_DATE, format models.
- [Relational and graph in one query](https://www.coradb.ai/manual/markdown/sql/hybrid.md): In CoraDB, tables and graphs are one data model: vertex and edge tables are tables, MATCH joins tables in one SELECT, one transaction.
- [Globalization: charsets, collations and locales](https://www.coradb.ai/manual/markdown/sql/i18n.md): Globalization in CoraDB: character sets, collations and locales, collation names, the available collations and a configuration guide.
- [Charset and collation of columns, tables and expressions](https://www.coradb.ai/manual/markdown/sql/i18n_collation.md): How CoraDB sets the charset and collation of columns, tables and expressions: COLLATE, SET NAMES, introducers and coercibility.
- [Locale setting and custom locales](https://www.coradb.ai/manual/markdown/sql/i18n_locale.md): Set up locales in CoraDB: locale files, make_locale, creating a database with a locale, synccolldb, and LDML collations.
- [Time zone setting and time zone library](https://www.coradb.ai/manual/markdown/sql/i18n_timezone.md): Configure time zones in CoraDB: timezone and server_timezone, SET TIME ZONE, updating the IANA library with make_tz, and JDBC.
- [Identifiers](https://www.coradb.ai/manual/markdown/sql/identifier.md): Rules for CoraDB identifiers: allowed characters, case-insensitivity, quoting with double quotes, brackets or backticks, and maximum lengths.
- [Java stored functions and procedures](https://www.coradb.ai/manual/markdown/sql/jsp.md): Write CoraDB stored functions and procedures in Java: load classes, publish them with CREATE FUNCTION/PROCEDURE, map types, call them.
- [Reserved words](https://www.coradb.ai/manual/markdown/sql/keyword.md): The list of CoraDB reserved words, which cannot be used as unquoted names of tables or columns, and how to quote them.
- [Literals](https://www.coradb.ai/manual/markdown/sql/literal.md): Write constant values in CoraDB SQL: numbers, date and time literals, bit strings, character strings, collections and NULL.
- [Methods and the CALL statement](https://www.coradb.ai/manual/markdown/sql/method.md): CoraDB methods are C functions attached to a table and called with CALL: class and instance methods, inheritance and CALL syntax.
- [Table inheritance: UNDER, INHERIT and superclasses](https://www.coradb.ai/manual/markdown/sql/oodb.md): Create CoraDB tables that inherit columns with UNDER, resolve conflicts with INHERIT, query hierarchies with ALL and ONLY.
- [Table partitioning: RANGE, HASH and LIST](https://www.coradb.ai/manual/markdown/sql/partition.md): Partition large CoraDB tables by RANGE, HASH or LIST: partition keys, pruning, adding, dropping and promoting partitions, local indexes.
- [Data manipulation statements (DML)](https://www.coradb.ai/manual/markdown/sql/query.md): Overview of the CoraDB statements that read and change data: SELECT, WITH, INSERT, UPDATE, REPLACE, DELETE, MERGE and TRUNCATE.
- [Common table expressions (WITH)](https://www.coradb.ai/manual/markdown/sql/query/cte.md): CoraDB common table expressions (WITH): chained CTEs, column lists, recursive CTEs, and CTEs in INSERT, UPDATE and DELETE.
- [DELETE statement](https://www.coradb.ai/manual/markdown/sql/query/delete.md): Remove rows with the CoraDB DELETE statement: WHERE and LIMIT, multi-table deletes with JOIN or USING, and foreign keys.
- [DO statement](https://www.coradb.ai/manual/markdown/sql/query/do.md): Evaluate an expression without returning a result using the CoraDB DO statement, for example to check an expression or run a function for its side effects.
- [Hierarchical queries (CONNECT BY)](https://www.coradb.ai/manual/markdown/sql/query/hq.md): Query tree-structured data with CoraDB hierarchical queries: START WITH, CONNECT BY, PRIOR, NOCYCLE, LEVEL and SYS_CONNECT_BY_PATH.
- [INSERT statement](https://www.coradb.ai/manual/markdown/sql/query/insert.md): Add rows with the CoraDB INSERT statement: VALUES, SET, SELECT, ON DUPLICATE KEY UPDATE, and inserting vertices and edges.
- [KILL statement](https://www.coradb.ai/manual/markdown/sql/query/kill.md): Stop a running query or end another session's transaction with the CoraDB KILL statement, and find the transaction index.
- [MERGE statement](https://www.coradb.ai/manual/markdown/sql/query/merge.md): Synchronize a table with a source query using the CoraDB MERGE statement: update, delete or insert rows, and index hints.
- [Prepared statements: PREPARE, EXECUTE, DEALLOCATE](https://www.coradb.ai/manual/markdown/sql/query/prepare.md): Prepare an SQL statement once and run it many times with CoraDB PREPARE, EXECUTE ... USING and DEALLOCATE PREPARE.
- [REPLACE statement](https://www.coradb.ai/manual/markdown/sql/query/replace.md): Insert or overwrite rows with the CoraDB REPLACE statement: a row that duplicates a primary or unique key replaces the old one.
- [SELECT statement](https://www.coradb.ai/manual/markdown/sql/query/select.md): Retrieve rows with the CoraDB SELECT statement: WHERE, GROUP BY, ORDER BY, LIMIT, joins, subqueries and graph MATCH patterns.
- [SET statement (session variables)](https://www.coradb.ai/manual/markdown/sql/query/set.md): Change session system parameters with the CoraDB SET statement, and create, assign and drop user-defined session variables.
- [SHOW statements](https://www.coradb.ai/manual/markdown/sql/query/show.md): Inspect a CoraDB database with SHOW statements: SHOW TABLES, COLUMNS, INDEX, CREATE TABLE, GRANTS, statistics and diagnostics.
- [TRUNCATE statement](https://www.coradb.ai/manual/markdown/sql/query/truncate.md): Empty a table quickly with the CoraDB TRUNCATE statement: how it differs from DELETE, how it resets AUTO_INCREMENT, and how foreign keys affect it.
- [UPDATE statement](https://www.coradb.ai/manual/markdown/sql/query/update.md): Change rows with the CoraDB UPDATE statement: SET with expressions and subqueries, ORDER BY and LIMIT, and multi-table updates.
- [Data definition statements (DDL)](https://www.coradb.ai/manual/markdown/sql/schema.md): Overview of the CoraDB statements that define database objects: tables, vertex and edge tables, indexes, views and serials.
- [CREATE, ALTER and DROP INDEX](https://www.coradb.ai/manual/markdown/sql/schema/index_stmt.md): Create and manage CoraDB indexes: unique, descending, filtered and function-based indexes, online builds, ALTER INDEX and DROP INDEX.
- [CREATE, ALTER and DROP SERIAL](https://www.coradb.ai/manual/markdown/sql/schema/serial_stmt.md): Generate unique sequence numbers with CoraDB serials: CREATE SERIAL options, NEXT_VALUE, CURRENT_VALUE, ALTER and DROP SERIAL.
- [CREATE, ALTER, DROP and RENAME TABLE](https://www.coradb.ai/manual/markdown/sql/schema/table_stmt.md): Define and change CoraDB tables: CREATE TABLE, constraints, AUTO_INCREMENT, vertex and edge tables, ALTER, DROP and RENAME TABLE.
- [CREATE, ALTER, DROP and RENAME VIEW](https://www.coradb.ai/manual/markdown/sql/schema/view_stmt.md): Define CoraDB views: CREATE OR REPLACE VIEW, WITH CHECK OPTION, updatable views, ALTER VIEW, DROP VIEW and RENAME VIEW.
- [Writing rules](https://www.coradb.ai/manual/markdown/sql/syntax.md): The basic rules for writing CoraDB SQL: identifiers, reserved words, comments and literals.
- [Transactions: COMMIT, ROLLBACK and savepoints](https://www.coradb.ai/manual/markdown/sql/transaction.md): How transactions work in CoraDB: auto-commit, COMMIT and ROLLBACK, savepoints, transactional DDL, cursor holdability and recovery.
- [Transaction isolation levels: READ COMMITTED, REPEATABLE READ, SERIALIZABLE](https://www.coradb.ai/manual/markdown/sql/transaction_isolation.md): Set the transaction isolation level in CoraDB and how READ COMMITTED, REPEATABLE READ and SERIALIZABLE behave, with examples.
- [Locking: lock modes, deadlocks and lock timeout](https://www.coradb.ai/manual/markdown/sql/transaction_locking.md): How CoraDB locks data: lock granularity and escalation, lock modes and compatibility, unique keys, deadlocks and lock timeouts.
- [Concurrency control: MVCC, snapshots and VACUUM](https://www.coradb.ai/manual/markdown/sql/transaction_mvcc.md): How CoraDB handles concurrent transactions with MVCC: read anomalies, row versions, snapshot visibility and VACUUM.
- [Triggers: CREATE, ALTER, DROP and RENAME TRIGGER](https://www.coradb.ai/manual/markdown/sql/trigger.md): Define CoraDB triggers that run when rows are inserted, updated or deleted: timing, conditions, new and old rows, deferred triggers.
- [Query optimization: statistics](https://www.coradb.ai/manual/markdown/sql/tuning.md): How the CoraDB optimizer uses statistics: UPDATE STATISTICS, GET STATISTICS, index cardinality and the corasql ;info commands.
- [SQL hints, index hints and query cache](https://www.coradb.ai/manual/markdown/sql/tuning_hints.md): Guide the CoraDB optimizer with SQL hints (ORDERED, USE_NL, USE_IDX, ...), index hints such as USE INDEX, and the query result cache.
- [Index optimizations: covering index, ORDER BY, GROUP BY and more](https://www.coradb.ai/manual/markdown/sql/tuning_index_opt.md): How CoraDB uses indexes to speed up queries: covering indexes, ORDER BY and GROUP BY without sorting, skip and loose index scans.
- [Query plans and query profiling](https://www.coradb.ai/manual/markdown/sql/tuning_plan.md): Read CoraDB query plans with the corasql ;plan command and profile execution with SET TRACE ON and SHOW TRACE, including MATCH.
- [Filtered, function-based and shared indexes](https://www.coradb.ai/manual/markdown/sql/tuning_special_index.md): CoraDB special indexes: filtered indexes with a WHERE clause, function-based indexes on expressions, and shared indexes.
