摘要:拿字段数据直接查询别张表并转出对应
SELECT TimesId ,ParliamentName ,ParliamentSequence , ?
ParliamentType =?
(
?select CodeValue?
?from SystemCode?
?where Code = ParliamentType and CodeIndex= ‘PType‘
)?
,StartDate ,EndDate ,UseStatus, AssignDate ,CreatedUserId ,CreatedUserName ,CreatedDate
,ModifiedUserId ,ModifiedUserName ,ModifiedDate
FROM COMTimes
这样查询?ParliamentType?会被取代成子查询结果。
原文地址:https://www.cnblogs.com/petewell/p/11457984.html
时间: 2024-10-08 05:06:45