Skip to main content

Sql Where Expressions

Goal

Use the where keyword when you need filtering of rows for partial table anonymizations or database subsetting.

Custom SQL notes
  • There will be no check of SQL syntax
  • Any occurrences of double quotes or backslash inside a SQL statement must be escaped with a backslash: \" and \.
  • A single statement cannot be divided on serveral lines. Multiple SQL statements may be written divided by newline

Use cases

A where clause can be used

  • to filter rows in update, so the anonymizations are done on specific parts of the table data
  • to filter rows in delete for subsetting the data

Ano Structure and Example

    update <table1>
where "..."
<table1-anonymizations>

delete <table2>
where "..." {
<table2-deletions>
}