primary key

Popularity
500+ learners.
No se puede cambiar las columnas incluidas en una restricción primary key, NOT NULL a NULL.
A columns included in a primary key constraint, cannot be changed from NOT NULL to NULL.
Advertencia: Cerciórese de que los índices de la foreign key y de la primary key utilizan el mismo tipo de ordenación (DESC | ASC).
Caution Make sure that foreign key and primary key indexes use the same sort order (DESC | ASC).
Una restricción PRIMARY KEY no puede quitarse si existe un índice XML en la tabla.
A PRIMARY KEY constraint cannot be dropped if an XML index exists on the table.
MySQL necesita una PRIMARY KEY en cada tabla BDB para que cada registro pueda identificarse unívocamente.
MySQL requires a primary key in each BDB table so that each row can be uniquely identified.
La PRIMARY KEY es más rápida que cualquier otro índice, ya que la PRIMARY KEY se almacena junto con los datos.
The primary key is faster than any other index, because it is stored together with the row data.
Esto significa que la restricción PRIMARY KEY no permite nulos mientras que la restricción UNIQUE y los índices unique permiten un número arbitrario de nulos.
It means that the PRIMARY KEY constraint doesn't allow NULLs whilst the UNIQUE constraint and unique indexes allow an arbitrary number of NULLs.
NULL puede especificarse en ALTER COLUMN para forzar que una columna NOT NULL permita valores NULL, excepto en el caso de las columnas de las restricciones PRIMARY KEY.
NULL can be specified in ALTER COLUMN to force a NOT NULL column to allow null values, except for columns in PRIMARY KEY constraints.
En el Advanced Combine Rows ventana, elija la columna en la que desea combinar las filas y haga clic en Primary Key para establecerlo como columna de clave.
In the Advanced Combine Rows window, choose the column which you want to combine rows based on, and click Primary Key to set it as key column.
Además, la columna no se puede definir en un índice, a menos que la columna es una varchar, nvarchar, o varbinary tipo de datos y el índice no es el resultado de una restricción PRIMARY KEY.
Also, the column cannot be defined in an index, unless the column is a varchar, nvarchar, or varbinary data type and the index is not the result of a PRIMARY KEY constraint.
Los otros índices se almacenan como los datos claves + la PRIMARY KEY, por lo que es importante mantener la PRIMARY KEY tan pequeña como sea posible para ahorrar espacio en disco y tener más velocidad.
The other indexes are stored as the key data plus the primary key, so it is important to keep the primary key as short as possible to save disk space and get better speed.
Word of the Day
honey