insert into select 语句,需要多insert一个字段怎么办

学习 时间:2026-04-09 01:02:13 阅读:5956
insert into select 语句,需要多insert一个字段怎么办比如tableA的字段 ID Name1 1tableB字段 ID Name Time从tableA中将 ID,Name 两个字段insert进tableB,另外Time字段比如Time=13期望得到的结果是:tableB ID Name Time1 1 13怎么写语句啊,我只会写inert into tableB(ID,Name) select ID,Name from tableA

最佳回答

生动的小甜瓜

炙热的煎饼

2026-04-09 01:02:13

inert into tableB(ID,Name,Time) select ID,Name,13 from tableA