📜  sql 更新查询 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:59.450000             🧑  作者: Mango

代码示例1
SOQL is a query language. It has no support for operations besides Read. If you want to perform other CRUD operations, you will need to make different calls. Within Apex, that would look like:

List records = [SELECT ... FROM MyObject__c WHERE ...];
for (MyObject__c record : records)
{
    // set some fields
}
update records;