Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function db_xor

Same name and namespace in other branches
  1. 8.9.x core/includes/database.inc \db_xor()

Returns a new DatabaseCondition, set to "XOR" all conditions together.

Return value

DatabaseCondition

Related topics

Database abstraction layer
Allow the use of different database servers using the same code base.

File

includes/database/database.inc, line 2800

Code

function db_xor () {
 return new DatabaseCondition ('XOR');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.