sql三级查询

 select* , (SELECT COALESCE(sum(CAST(isNULL(c.SpinfokuzxmSize_SizeNum,0) AS decimal (18,0))),0)  FROM np_SpinfokuzxmSize c WHERE c.Spinfoku_id=s.Spinfoku_id) as sumSizeNum from np_Spinfoku s ,np_SpinfokuzxmSize d  where s.Spinfoku_id=d.Spinfoku_id  and  d.SpinfokuzxmSize_oneTcode like'%34566672%' 
 

你可能感兴趣的:(数学建模,python,开发语言)