1.将查询的结果插入到一张新表(yangTest 表系统会自动生成)select Area, District, RoadName, StationName, PathDirection, StationAddress, StrLatlon,remark into yangTest from tblstop where stationname ='123' 2.利用SQL Server 自己的导出脚本方式,导出带数据的脚本,这时脚本会带新建表和设置索引等语句一起导出(在脚本文件的开始和末尾位置,
) drop procedure [dbo].[spGenInsertSQL] GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO )) as begin ) ) set @sql =' (' set @sqlValues = 'values (''+' select @sqlValues = @sqlValues + cols + ' + '','' + ' ,@sql = @sql + '[' + name + '],' from (se