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

学习 时间:2026-11-24 04:03:38 阅读:1730
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-11-24 04:03:38

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