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

学习 时间:2026-08-23 12:25:43 阅读:4313
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-08-23 12:25:43

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