The ADDDATE function returns the input time specified by the first parameter, with the added time interval specified by the second parameter. Syntax: ADDDATE(date, INTERVAL expr type) There is a synonym for the ADDDATE() function: DATE_ADD(). The second parameter of the function starts with the keyword INTERVAL, followed by the value and type of this value. The function also allows the use of negative values, in which case the period is subtracted, not added.
This publication will consider some functions of irreversible encryption used in the MySQL database management system. The MD5() function produces irreversible encryption of incoming data using the MD5 (Message-Digest Algorithm) algorithm. The function accepts a string as input and returns a 128-bit checksum calculated using the MD5 algorithm. The returned value is a 32-bit hexadecimal number, unique for each string. If the strings differ by at least one character, the result of the MD5() function for these strings will be different, for two identical strings - the result will always be the same.
The AES_ENCRYPT() and AES_DECRYPT() functions perform symmetric encryption and decryption of data using the AES (Advanced Encryption Standard) algorithm, using 128-bit encoding. There is an option to expand to 256-bit, but 128-bit is chosen as the standard in MySQL, as it is considered secure and faster.<br><br>The syntax of the functions:
In this publication, we will consider how to connect to the MySQL database from a .Net Core application. 1. If you have not installed .Net Core yet, install it: .NET Core. 2. Then create a new .NET Core project: mkdir MySQlCoreSample cd MySQlCoreSample dotnet new webapi
The error occurs due to the user's lack of access, to provide this access, we do this: $ mysql -u root -p Enter password: mysql> use mysql mysql> GRANT ALL ON *.* to root@'192.168.1.4' IDENTIFIED BY 'your-root-password'
В этой публикации я рассмотрю подробно, на сколько это возможно, основные типы данных используемые в СУБД MySQL. MySQL поддерживает несколько различных типов данных: Числовые данные — это все целые числа (без дробной части) и вещественные ч…
I'll say right away that this article is not mine, but I really liked it, and to avoid having to search for it later, I decided to post it here. Fortunately, the author does not prohibit this on his website. Thank you very much to him for that. Here is the original: http://blog.peter.am/index.php/2010/11/3…
Everything below is written as an example, learn to use Dapper better. Below, in a separate class, methods are implemented not only to execute queries of the type (Scalar and NonQuery) but also a method that returns a set of data in DataTable. The handling of exceptional situations is also considered.
This article will cover the main ways to perform type casting in MySQL. It should be noted that in most cases, type casting in MySQL will work automatically, for example:
MySQL database supports several different types of tables, each with its own unique features and limitations. I will start my description with the "native" type of tables for MySQL, MyISAM. If the type of table is not specified in the create table operator, it will be assigned to MyISAM. Each MyISAM table is stored on disk in three files (in the subdirectory of the mysql/data catalog), the names of which match the name of the table, and the extension can take one of the following values: .frm - the structure of the table, this file contains information about the names and types of columns and indexes; .MYD - in this file, the data of the table is stored; .MYI - in this file, the indexes of the table are stored. Tables of the MyISAM type have several features: 1. Data is stored in a cross-platform format, which allows for the transfer of databases from one server to another by direct copying of files, bypassing intermediate forms. 2. The maximum number of indexes is 64 (from version 4.1.2). Each index can be a maximum of 16 columns. 3. From MySQL 4.1, a specific encoding can be set for each text column. 4. Indexing of text columns, including variable-length columns, is allowed. 5. Full-text search is supported. 6. Tables have a special flag indicating the correctness of closing the table. If the server was stopped abnormally, when loading, the flags of the closed tables will signal the possible damage to the tables and the server will attempt to automatically check and restore them.