SQL 到 SOQL 转换 (Salesforce.com SOQL)
有人为 Salesforce.com 对象做过 SQL 到 SOQL 的转换吗?
Has any one done SQL to SOQL Conversion for Salesforce.com Objects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的。
ForceAmp 推出了一款名为 dbAmp,它允许您将 Salesforce 添加为 MS SQL 中的链接服务器。
这使您可以直接对 SQL Server 数据库内的 Salesforce.com 数据执行查询,语法如下:
其中,本质上与 SOQL 相同
也就是说,dbAmp 的最佳用例不是用 SQL 替换您的 SOQL ,而是使用 TSQL 对 Salesforce.com 数据进行一些高级操作。 不要将其用作避免学习 SOQL 的拐杖——SOQL 非常具有表现力和健壮性,并且在执行多对象查询时速度要快几个数量级,即使是在我上面发布的简单示例中(3 秒 vs 3 分钟,并且数数...)
Yes.
ForceAmp makes a product called dbAmp, which lets you add Salesforce as a linked server in MS SQL.
This lets you perform queries directly against Salesforce.com data inside a SQL Server database, with syntax such as:
Which, in essence is the same as the SOQL
That said, the best use case of dbAmp isn't to replace your SOQL with SQL, but to use TSQL to do some advanced manipulation with your Salesforce.com data. Don't use it as a crutch to avoid learning SOQL -- SOQL is very expressive and robust, and several orders of magnitude faster when doing multiple-object queries, even in the trivial example I posted above (3 seconds vs 3 minutes, and counting...)
DBAmp 现在可以直接通过 OpenQuery 短语接受 SOQL
DBAmp can now accept SOQL directly via the OpenQuery phrase
不。
如果您想要一个比这更有意义的答案(或“是”),那么您可能需要稍微扩展一下您的问题。 您有具体问题吗? 您是否正在寻找有关使用工具的意见?
No.
If you want a more meaningful answer than that (or "yes") then you may want to expand on your question a bit. Are you having a specific issue? Are you looking for opinions on tools to use?