Horje
mysql set primary key Code Example
mysql set primary key
ALTER TABLE tableName MODIFY COLUMN id INT; /* First you should drop auto increment */
ALTER TABLE tableName DROP PRIMARY KEY; /* Dop primary key */
ALTER TABLE tableName ADD PRIMARY KEY (new_id); /* Set primary key to the new column */
ALTER TABLE tableName MODIFY COLUMN new_id INT AUTO_INCREMENT; /* Set auto increment to the new primary key */
mysql drop key
ALTER TABLE tbl_quiz_attempt_master
  DROP INDEX `PRIMARY`;




Sql

Related
how to create a new user in postgresql Code Example how to create a new user in postgresql Code Example
oracle table statistics Code Example oracle table statistics Code Example
sql group by error Code Example sql group by error Code Example
postgresql get last day of month Code Example postgresql get last day of month Code Example
how to check last gather stats on table in oracle Code Example how to check last gather stats on table in oracle Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8