Rechercher dans le manuel MySQL

Displaying 1 to 10 of 294 total results
https://dev.mysql.com/partitioning-limitations-partitioning-keys-unique-keys.html
This section discusses the relationship of partitioning keys with primary keys and unique keys. The rule governing this relationship can be expressed as follows: All columns used in the partitioning expression for a partitioned table must be part ...These rules also apply to existing nonpartitioned tables that you wish to partition using ALTER TABLE ...
https://dev.mysql.com/glossary.html
It saves work for the developer, not to have to produce new unique values when inserting new rows. It provides useful information for the query optimizer, because the column is known to be not null and with unique values. For example, for a column ... These terms are commonly used in information about the MySQL database ...
https://dev.mysql.com/getting-unique-id.html
If you insert a record into a table that contains an AUTO_INCREMENT column, you can obtain the value stored into that column by calling the mysql_insert_id() function. You can check from your C applications whether a value was stored in an ...
https://dev.mysql.com/create-index.html
CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name [index_type] ON tbl_name (key_part,...) [index_option] [algorithm_option | lock_option] ... For a unique index, an error occurs regardless of SQL mode because reducing the index length might ...
https://dev.mysql.com/mysql-cluster-ndbd-definition.html
Unique hash indexes are updated only when the unique index columns are updated, in which case a new entry in the index table is inserted and the old entry is deleted upon commit. Consider this table definition: CREATE TABLE example ( a INT NOT NULL, ... The [ndbd] and [ndbd default] sections are used to configure the behavior of the cluster's data ...
https://dev.mysql.com/create-table.html
IGNORE|REPLACE The IGNORE and REPLACE options indicate how to handle rows that duplicate unique key values when copying a table using a SELECT statement. For a unique index, an error occurs regardless of SQL mode because reducing the index length ...
https://dev.mysql.com/constraint-primary-key.html
Normally, errors occur for data-change statements (such as INSERT or UPDATE) that would violate primary-key, unique-key, or foreign-key constraints. If you use it, MySQL ignores primary-key or unique-key violations and continues processing with the ...If you are using a transactional storage engine such as InnoDB, MySQL automatically rolls back the ...
https://dev.mysql.com/innodb-locks-set.html
However, only an index record lock is required for statements that lock rows using a unique index to search for a unique row. FOR SHARE statements that use a unique index acquire locks for scanned rows, and release the locks for rows that do not ...
https://dev.mysql.com/miscellaneous-functions.html
There are multiple ways to cause MySQL to accept the query: Alter the table to make name a primary key or a unique NOT NULL column. This enables MySQL to determine that address is functionally dependent on name; that is, address is uniquely ...The ...
https://dev.mysql.com/server-error-reference.html
ON DUPLICATE KEY UPDATE on a table with more than one UNIQUE KEY is unsafe Error number: 1725; Symbol: ER_TABLE_IN_FK_CHECK; SQLSTATE: HY000 Message: Table is being used in foreign key check. Error number: 3728; Symbol: ER_SPATIAL_UNIQUE_INDEX; ...
Displaying 1 to 10 of 294 total results

Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-fct-unique-p-1.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut