What Are The Types of SOQL Statements in SalesForce?
Salesforce Object Query Language is used to query records from the database.com based on the requirement. There are 2 types of SOQL Statements: Static SOQL Dynamic SOQL Static SOQL: The Static SOQL Statement is written in [] (Array Brackets) These statements are similar to IINQ (Ion Integrated Query)Dynamic SOQL: It is used to refer to the creation of a SOQL string at run time with Apex code. Dynamic SOQL enables you to create a more flexible application. To create a Dynamic SOQL query at run time use a Database.Query() method, in one of the following ways. Return a single sObjects when the query returns a single record. sObjects s = Database. Query(String_limit_l); Return a list of sObjects when the query returns more than a single record.