摘要:
今天写SQL SERVER的时候,发现一个BUG,贴出来大家讨论一下。 select distinct a.plant,b.material from ezform a with(nolock) left join EZFORM_PackingList_Item b with(nolock) on 阅读全文
摘要:
declare @defaultGroup int select top 1 @defaultGroup=isnull([InvoiceGroup],0) from #t1 where ItemType=2 print @defaultGroup 我原来以为,如果#t1里面没有ItemType=2的 阅读全文
摘要:
select a.BusinessId,count(1) as count1,b.PlantNo,b.VendorCode from Payment_Details a,Payment_Master b where a.BusinessId=b.BusinessId and b.StartTime= 阅读全文