insert into .....select......

use dbName;

declare @myTable Table

{

  id int,

  uName nvarchar(10)

};

insert into myTable

  select uId,uName from uInfo where ...;

 

 

select * from @myTable; 

posted @ 2013-01-10 23:19  jsping68  阅读(150)  评论(0编辑  收藏  举报