Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select class="form-control" id="tipo1" name="tipo1">
- <option value="" selected>TODOS</option>
- <option value="1">Opção 1</option>
- <option value="3">Opção 2</option>
- ...
- </select>
- <select class="form-control" id="tipo2" name="tipo2">
- ...
- Id Tipo1 Tipo2 Tipo3 Tipo4 Valor
- 1 1 Null 2 3 100.00
- select id from tabela
- where tipo1 is null
- and tipo2 is null
- and tipo3 is null
- and tipo4 is null
- tipo1 is null (campo nulo)
- tipo1 = "" (string vazia)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement