我在 AX 的一份工作中有以下声明:
select RecId from pjiTable
join pID, Type, PrId from sjTable
where pjiTable.Prid == sjTable.PrId &&
(sjTable.Type == PjType::TimeMaterial || sjTable.Type == PjType::FixedPrice);
我必须在 SQL Server 中使用它。我怎样才能转换这个select
语句转换成 SQL 并在 SQL Server Management Studio 中使用它?
出于调试目的,您可以更改select
查询和使用获取SQL语句方法在你的桌子上:
select generateOnly forceLiterals RecId from pjiTable
join pID, Type, PrId from sjTable
where pjiTable.Prid == sjTable.PrId &&
(sjTable.Type == PjType::TimeMaterial || sjTable.Type == PjType::FixedPrice);
info(pjiTable.getSQLStatement());
这将向您显示 SQL 语句,而无需实际执行该语句。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)