cosa c'è di sbagliato in questa SQL ?
non mi stampa i prodotti che hanno nella colonna tip_UK il valore "decoder" e "special" !
strSQL="SELECT TOP 4 * FROM products where tip_UK ='special, decoder' ORDER BY ID DESC"
cosa c'è di sbagliato in questa SQL ?
non mi stampa i prodotti che hanno nella colonna tip_UK il valore "decoder" e "special" !
strSQL="SELECT TOP 4 * FROM products where tip_UK ='special, decoder' ORDER BY ID DESC"
se sono 2 valori distinti nella colonna tip_UK allora:
codice:strSQL="SELECT TOP 4 * FROM products where tip_UK ='special' or tip_UK ='decoder' ORDER BY ID DESC"
La passera non dura perchè Sypher la cattura!
"No one like us we don't care, we are millwall, super millwall, we are millwall from the DEN"
thanks!![]()
e se ho una SQL con diversi parametri
Così è corretta ?
codice:strSQL="SELECT TOP 4 * FROM products where tip_UK='transceiver' or tip_UK='rf modem' AND modulation='434 MHz AM OOK' AND new='1' ORDER BY ID DESC"
certo
La passera non dura perchè Sypher la cattura!
"No one like us we don't care, we are millwall, super millwall, we are millwall from the DEN"