How to insert from one table to another and on duplicate key append string to new row?
If i got table with values:
a
b
c
and want insert tablevith value:
a
i want append string like ‘x’ so i will get table with values:
a
b
c
xa
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Will literally do what you asked…but it’s not a proper solution unless you have a very unique issue you’re trying to solve. It will fail if ‘a’ comes up again in the list because ‘xa’ will already be there too. A two query solution would be much easier to do assuming you’re executing this within PHP or something.
Hope this helps…if you provide more details I may be able to be more helpful.