select Aid,
cast((select Bbeizhu+';' from 表B b1 where b1.Aid=b0.Aid for xml path('')) as varchar) beizhu
from 表B b0
b1和 b0有什么区别吗