I'd like to copy a number of rows from one table to another within phpmyadmin. The table i'm copying from is the profile table. The table user i'm copying to already exists but the columns do not. I'm attempting the following command in the SQL tab of phpmyadmin.
INSERT INTO user
(profileImage,
skypeName,
facebookProfile,
twitterProfile,
reputation,
genderPreference,
agePreference,
fluentLanguage,
desiredLanguage)
(SELECT profileImage, skypeName, facebookProfile, twitterProfile, reputation, genderPreference, agePreference, fluentLanguage, desiredLanguage FROM profile)
For some reason this isn't working out for me. I'm getting an error:
#1054 - Unknown column 'profileImage' in 'field list'
profileImage exists in the profile table, i.e. it is the name of one of my fields
Does anyone know what the problem might be?
INSERT INTO db.tblandSELECT FROM db2.tbl?proileImageis misspelled, could that be the cause?