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?
If the error is
#1054 - Unknown column 'proileImage' in 'field list'then, simply, that column doesn’t exist in either (or both) your profile or your user table.Just run the select part of the query, ie.
SELECT profileImage, skypeName, facebookProfile, twitterProfile, reputation, genderPreference, agePreference, fluentLanguage, desiredLanguage FROM profileDoes that work?
If so, are you sure
profileImageexists in the user table?