MYSQL 数据库,同一个数据库中有两个表 news和article,现在我想把表article中的字段 title content zznews nfrom hits dateandtime editor 内的值赋值给表news中的字段 title content author source hits sendtime keywords,SQL语句该怎么写?我之前像下面那么写的,出错,请高手来解答!insert into news(Title,Content,Author,Source,Hits,Sendtime,Keywords) values select title,content,zznews,nfrom,hits,dateandtime,editor from article where tjnews=0 and typeid=8
2 回答
开满天机
TA贡献1786条经验 获得超13个赞
insert into news(Title,Content,Author,Source,Hits,Sendtime,Keywords) select title,content,zznews,nfrom,hits,dateandtime,editor from article where tjnews=0 and typeid=8
添加回答
举报
0/150
提交
取消