MYSQL 數(shù)據(jù)庫(kù),同一個(gè)數(shù)據(jù)庫(kù)中有兩個(gè)表 news和article,現(xiàn)在我想把表article中的字段 title content zznews nfrom hits dateandtime editor 內(nèi)的值賦值給表news中的字段 title content author source hits sendtime keywords,SQL語(yǔ)句該怎么寫(xiě)?我之前像下面那么寫(xiě)的,出錯(cuò),請(qǐng)高手來(lái)解答!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 回答

開(kāi)滿天機(jī)
TA貢獻(xiàn)1786條經(jīng)驗(yàn) 獲得超13個(gè)贊
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
添加回答
舉報(bào)
0/150
提交
取消