sql一个数据库中的表中某一列插入到另一个数据中的表中某一列当中

sql一个数据库中的表中某一列插入到另一个数据中的表中某一列当中

insert into [NEWU_WCS].[dbo].[mPortCache] (PortID,PortCacheLocation) 
select newid(),LineInPortCode from [NEWU_WMS].[dbo].[mLineInPort]