首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

insert 的内容是select 出来的 + 自己设定的,如何写

2013-01-11 
insert 的内容是select 出来的 + 自己设定的,怎么写?insert 的内容是select 出来的 + 自己设定的,怎么写?i

insert 的内容是select 出来的 + 自己设定的,怎么写?
insert 的内容是select 出来的 + 自己设定的,怎么写?
insert into a(x,y,z) select x,y from b
这里z是我来设定的,怎么写?
[解决办法]
insert into a(x,y,z) 
select x,y,'123' as z from b

热点排行