ALTER TABLE provider ADD PRIMARY KEY(person,place,thing);
If a primary key already exists then you want to do this
ALTER TABLE provider DROP PRIMARY KEY, ADD PRIMARY KEY(person, place, thing);
More Related Contents:
- How to properly create composite primary keys – MYSQL
- difference between primary key and unique key
- Remove Primary Key in MySQL
- ALTER table – adding AUTOINCREMENT in MySQL
- Strings as Primary Keys in MYSQL Database [closed]
- How do I import an SQL file using the command line in MySQL?
- How to select the nth row in a SQL database table?
- MySQL – How to unpivot columns to rows?
- UPDATE multiple rows with different values in one query in MySQL
- MySQL SELECT only not null values
- Detect if value is number in MySQL
- Difference between two dates in MySQL
- How do I create a sequence in MySQL?
- MySQL search and replace some text in a field
- MySQL: ALTER TABLE if column not exists
- Can I reuse a calculated field in a SELECT query?
- Group mysql query by 15 min intervals
- Using Count to find the number of occurrences
- Is there any reason to worry about the column order in a table?
- MySQL: LIMIT by a percentage of the amount of records?
- limiting the rows to where the sum a column equals a certain value in MySQL
- MySql Transpose Row into Column and Column into Row [duplicate]
- MySQL Inner Join Query Multiple Tables
- How to select column names dynamically in mySQL
- MySQL 1062 – Duplicate entry ‘0’ for key ‘PRIMARY’
- MySQL LEFT JOIN 3 tables
- MySql using correct syntax for the over clause
- MySQL OPTIMIZE all tables?
- Strip last two characters of a column in MySQL
- Deleting a row based on the max value