I want to be able to add a primary key to a table through altering the table. At the moment, I am using coding such as:
USE test3;
ALTER table users ->ADD primary key (uname);
But I get told: No database selected
Does anyone know how to fix this?
Any help is appreciated