Home  >  Article  >  Database  >  mysql-复制一列数据到另一个表,还要在数据前面加字符串,求大神给思路!

mysql-复制一列数据到另一个表,还要在数据前面加字符串,求大神给思路!

WBOY
WBOYOriginal
2016-06-06 09:37:22975browse

mysqlsql数据库

比如查询A表产品id,复制到B表并且统一加入 product_id,最后的效果是

product_id=1
product_id=2

有没有sql语句能做到?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn