【发布时间】:2015-09-24 18:41:58
【问题描述】:
对 SOQL 非常陌生。希望编写一个查询(将在 Apex 数据加载器中使用)提取 CreatedDate
提前致谢!
【问题讨论】:
标签: salesforce soql apex-data-loader
对 SOQL 非常陌生。希望编写一个查询(将在 Apex 数据加载器中使用)提取 CreatedDate
提前致谢!
【问题讨论】:
标签: salesforce soql apex-data-loader
没有添加任何日期。但是,查看您的标准 LAST_N_DAYS 内置应该为您解决问题
假设我想选择早于 14 天前(包括那一天)的数据,我会这样做
Select Id, CreatedDate from Account where CreatedDate <= LAST_N_DAYS:14
如果我需要相反的数据,即过去 14 天创建的数据
Select Id, CreatedDate from Account where CreatedDate >= LAST_N_DAYS:14
【讨论】: