1.

What Are The Types Of Soql Statements In Sales Force?

Answer»

Salesforce Object Query Language is used to query that records from the database.com based on the requirement.

There are 2 TYPES of SOQL Statements:

  • Static SOQL
  • Dynamic SOQL

1.Static SOQL:

  • The oStatic SOQL Statement is written in [] (Array Brackets)
  • This statements are similar to IINQ(Ion Integrated Query)

2.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 more flexible application.
  • To create Dynamic SOQL query at run time USE Database.Query() method, in ONE of the following ways.
  • Return a single sObjects when the query returns a single record. ex:sObjects s = Database. Query(String_limit_l);
  • Return a list of sObjects when the query returns more than a single record.

Salesforce Object Query Language is used to query that records from the database.com based on the requirement.

There are 2 types of SOQL Statements:

1.Static SOQL:

2.Dynamic SOQL



Discussion

No Comment Found