Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The convention for storing the primary key in a database custom field is to mark the primary key field in the query using "as pk".

Let's use a nested select in a dynamic query for an example:

Code Block
titleStatement with a nested select
SELECT id, fk_id, col1 FROM testTable1 WHERE fk_id = (select id from testTable2 where col = {customfield_10000});