标签:expec 内容 join cte get form bsp rod gety
1 , select j.id,
jt.Name,
j.ApproveType ,
j.ProductCode,
j.CustomerCode,
u.FullName,
jf.Name as jfName,
j.ExpectedTime
from JudgeOrder as j
join JudgeOrderType as jt on j.JudgeType=jt.Id
join [User] as u on j.SalesManCode=u.Name
join JudgeOrderFormat as jf on j.FormatType=jf.id order by j.Id
核心就是:tableName1 as tName1 join tableName2 as tName2 on tName1.xxx = tName2.xxx
通俗易懂!
标签:expec 内容 join cte get form bsp rod gety
原文地址:http://www.cnblogs.com/code-Officer/p/6207397.html