Skip to content

Instantly share code, notes, and snippets.

@franklinbr
Created May 14, 2019 17:29
Show Gist options
  • Save franklinbr/7dba34064d6256be41ea8dbc0f45cd7a to your computer and use it in GitHub Desktop.
Save franklinbr/7dba34064d6256be41ea8dbc0f45cd7a to your computer and use it in GitHub Desktop.
$1 = '11', $2 = '22', $3 = '33', $4 = '44', $5 = '55', $6 = '66', $7 = '77', $8 = '88', $9 = '99', $10 = '10'
select campo1, campo2, campo3 from tabela1 where campo1 = $1 and campo2 <> $2 and campo3 in ($3, $4, $5, $6, $7, $8, $9, $10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment