给数据库一个表的某一列插入另一个表的数据
USE [growup] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[S_CheckMatterIntoMatterClass] @matterid uniqueidentifier AS insert into S_MatterClass(S_MatterId,S_MatterName,S_BigClass,S_SmallClass,S_ParentId) select newid(),S_MatterName,S_BigClass,S_SmallClass,S_ParentId from S_Matter where S_MatterId=@matterid and CheckId='1' RETURN 0