Visão Geral
Curso MariaDB para desenvolvedores foi projetado para Desenvolvedores MariaDB que têm um bom conhecimento de um banco de dados MariaDB e experiência no uso de comandos SQL.
O curso fornece mais experiência prática em comandos MariaDB mais avançados e instruções SQL, incluindo suporte a expressões regulares, expressões de tabela comuns, funções de janela, rotinas armazenadas, funções personalizadas, tratamento de exceções e gatilhos.
Exercícios e exemplos são usados ao longo do curso para fornecer experiência prática com as técnicas abordadas.
Objetivos do Curso
- Para fornecer as habilidades necessárias para escrever consultas mais avançadas e instruções de manutenção de banco de dados em um banco de dados MariaDB.
Objetivo
Após realizar este Curso MariaDB para desenvolvedores você será capaz de:
- Usando recursos avançados do cliente MySQL com MariaDB
- Usando tipos de dados avançados
- Escrever instruções de consulta SQL complexas
- Usando expressões SQL avançadas
- Execução de operações avançadas de inserção, atualização, exclusão, substituição e truncamento
- Usando sintaxe e propriedades de variáveis de usuário
- Importando e exportando dados de dentro do MariaDB
- Importar e exportar dados da linha de comando
- Executando subconsultas complexas
- Usando Conectores MariaDB
- Integração MariaDB e NoSQL
- Criação, gerenciamento e uso de visualizações
- Implementando uma Expressão de Tabela Comum (CTE)
- Usando funções de janela
- Implementando Expressões Regulares
- Usando declarações preparadas
- Criação e uso de rotinas armazenadas
- Criação e uso de gatilhos
- Obtenção de metadados de banco de dados
- Otimizando consultas
- Trabalhando com os principais mecanismos de armazenamento
- Depurando aplicativos MariaDB
Publico Alvo
- Desenvolvedores que possuem um conhecimento básico de um banco de dados MariaDB (ou MySQL) e comandos SQL conforme abordado no curso Introdução ao MariaDB.
Pre-Requisitos
- É necessário um conhecimento prático de MariaDB (ou MySQL). Isso pode ser obtido através da participação na Introdução ao MariaDB .
Materiais
Inglês | Português
Conteúdo Programatico
Course Introduction
- Administration and Course Materials
- Course Structure and Agenda
- Delegate and Trainer Introductions
CLIENT/SERVER CONCEPTS
- MariaDB client/server architecture
- Server modes
- Using client programs
- Logging in options
- Configuration files
- Precedence of logging in options
- Exercises: Using client/server
THE MYSQL CLIENT PROGRAM FOR MariaDB
- Using MariaDB interactively
- The MariaDB prompts
- Client commands and SQL statements
- Editing
- Selecting a database
- Help
- Safe updates
- Using script files
- Using a source file
- Redirecting output into a file
- Command line execution
- MariaDB output formats
- Overriding the defaults
- Html and xml output
- MySQL Utilities
- Exercises: Using the MySQL client program to connect to MariaDB
DATA TYPES
- Bit data type
- Numeric data types
- Auto_increment
- Character string data types
- Character sets and collation
- Binary string data types
- Enum and Set data types
- Temporal data types
- Timezone support
- Spatial Datatypes
- Handling Missing Or Invalid Data Values
- SQL_MODE options
- Exercises: Using data types
IDENTIFIERS
- Using Quotes with identifier naming
- Case sensitivity in Identifier naming
- Qualifying columns with table and database names
- Using reserved words as identifiers
- Function names
- Exercises: Using identifiers
QUERYING FOR DATA
- The SQL select statement and MAriaDB differences
- Advanced order by
- Order by and collation
- Order by with enum datatype
- Order by with Set datatype
- Ordering with distinct and group by
- Special features of union
- Limit and order by clauses
- Group By clause
- Group_concat
- Using Rollup in a Group By clause
- Exercises: Querying for data
SQL EXPRESSIONS AND FUNCTIONS
- Components of expressions
- Nulls
- Numeric expressions
- String expressions
- Temporal expressions
- Comparison functions
- Flow control functions
- Numeric functions
- String functions
- Temporal functions
- Exercises: Using expressions and functions
UPDATING DATA
- Update operations and privileges
- Inserting rows
- Insert using a set clause
- Inserting duplicate values
- Replacing rows
- Updating rows
- Update using the order by and limit clauses
- Deleting rows
- The delete and truncate statements
- Exercise: Inserting, updating, replacing and deleting data
CONNECTORS
- MariaDB connectors
- Connecting to MariaDB server using Java and PHP connectors
- MariaDB and NoSQL
OBTAINING DATABASE METADATA
- What is metadata?
- Using mysqlshow utility with MariaDB
- The show and describe commands
- Describing tables
- The information_schema
- Listing tables
- Listing columns
- Listing views
- Listing key_columns_usage
- Exercises: Obtaining database metadata
DEBUGGING
- MariaDB error messages
- The show statement
- Show errors
- Show count(*) errors
- Show warnings
- Show count(*) warnings
- Note messages
- The perror utility
- Exercises: Debugging
IMPORT AND EXPORT
- Exporting using SQL
- Privileges required to export data
- Importing using SQL
- Messages when loading data
- Privileges required to load data
- Exporting from the command line
- Mysqldump main options
- Importing from the command line
- Mysqlimport main options
- Exercises: Importing and exporting
SUBQUERIES
- Types of subquery
- Multiple-column subqueries
- Correlated subqueries
- Using the ANY, ALL and SOME operators
- Using the EXISTS operator
- Subqueries as scalar expressions
- Derived Table
- WITH Clause ( Common Table Expression - CTE )
- Recursive CTEs
- Using subqueries in updates and deletes
- Exercises: Coding subqueriess
VIEWS
- Why views are used
- Creating views
- View creation restrictions
- View algorithms
- Updateable views
- Altering and dropping views
- Displaying information about views
- Privileges for views
- Exercises: Using views
USING WINDOW FUNCTIONS
- Description
- Non-aggregate window functions
- Using RANK, DENSE_RANK, ROW_NUMBER, NTILE
- Window partition clause
- Using LAG. LEAD, FIRST_VALUE, LAST_VALUE, NTH_VALUE
- Aggregate window functions - SUM, AVG etc
- Window frame clause
- Exercises: Using Window Functions
REGULAR EXPRESSION SUPPORT
- Overview of Regular Expression
- Regular Expression Notation
- The REGEXP_LIKE operator
- The REGEXP_INSTR function
- The REGEXP_SUBSTR function
- The REGEXP_INSTR function
- The REGEXP_REPLACE function
- Exercises: Regular Expression Support
USER VARIABLES AND PREPARED STATEMENTS
- Creating User variables
- User variables in a select
- Prepared statements
- The prepare statement
- The execute statement
- The deallocate statement
- Using prepared statements in code, with connectors
- Exercises: Using variables and prepared statements
INTRODUCTION TO STORED ROUTINES
- Types of stored routines
- Benefits of stored routines
- Stored routine features
- Differences between procedures and functions
- Introduction to the Block
- Declaring variables and constants
- Assigning values to variables
- Definer rights and invoker rights
- Using SELECT in stored routines
- Altering and dropping stored routines
- Obtaining stored routine metadata
- Stored routine privileges and execution security
- Exercises: Writing simple stored routines
STORED ROUTINES - PROGRAM LOGIC
- The IF .. THEN .. ELSEIF construct
- The CASE statement
- The basic loop
- The while loop
- The repeat loop
- The iterate statement
- Nested loops
- Exercises: Writing stored routines with program logic
PROCEDURES WITH PARAMETERS
- Creating procedures with parameters
- Calling Procedures With Parameters
- Exercises: Writing stored routines with parameters
STORED ROUTINES - EXCEPTION HANDLERS & CURSORS
- Dealing with errors using Exception handlers
- Cursors
- What is a cursor?
- Cursor operations
- Declaring cursors
- Opening and closing cursors
- Fetching rows
- Status checking
- Exercises: Writing stored routines with program logic
FUNCTIONS
- What is a function?
- The create function statement
- Executing functions
- Executing functions from code
- Executing functions from SQL statements
- The deterministic and SQL clauses
- Exercises: Writing functions
TRIGGERS
- Trigger creation
- Restrictions on triggers
- The create trigger statement
- Using the old and new qualifiers
- Managing triggers
- Destroying triggers
- Required privileges
- Exercises: Writing triggers
BASIC OPTIMIZATIONS
- Normalisation of data to third normal form
- Using indexes for optimization
- General query enhancement
- Using Explain to analyze queries
- Choosing an INNODB or MYISAM storage engine
- Using MariaDB Enterprise Monitor in query optimization
- Exercises: Making use of basic optimizations
MORE ABOUT INDEXES
- Indexes and joins
- Exercises: Investigating indexes and joins
TENHO INTERESSE