Entering content frame

Component documentation SQL Tutorial Locate the document in its SAP Library structure

MySQL MaxDB is a relational database system with an SQL language interface. The data in MaxDB is organized in the form of tables. You can use a set of simple SQL (Structured Query Language) based on English to perform a wide range of operations on the data and tables in MaxDB.

This tutorial is designed to introduce you to the SQL language using the MySQL MaxDB database system.

Note

General information about databases is provided under Concepts of the Database System and in the Glossary.

A complete description of the SQL syntax is provided in the Reference Manual.

SQL Statements

The SQL statements that are described in the examples throughout this tutorial can be grouped in the following categories:

·        The SELECT statement can be used to select data across certain rows or columns in a table. Rows from several tables can be linked. The data can be sorted, grouped, and calculated.
Examples are provided in the section on data queries.

·        A further group of statements is used to define and redefine the table structure and other database objects.
Examples are provided in the section on data definition.

·        Rows can be inserted with the INSERT statement and removed with DELETE. Changes can be made with the UPDATE statement.
Examples are provided in the section on data manipulation.

·        A further group of statements is used to control access authorizations for users and user groups to the data on the database.
Examples are provided in the section on authorization.

Note

To ensure that the SQL statements are clearly recognizable, the keywords are written in upper-case letters and the SQL statements are structured. When you execute an SQL statement, you can specify the syntax elements in both upper and lower-case letters and use blanks and line breaks.

Upper and lower-case letters, however, may be important when choosing identifiers for the database objects and entering values in the form of literals.

HOTELDB Model Database

To work through the examples in this tutorial, you need the HOTELDB model database.

 

Leaving content frame