Ciao ragazzi, aiutatemi...
esiste un modo per fare un:
DELETE TOP 50 * WHERE .......
ovvero cancellare i primi 50 recordset che rispettano la condizione WHERE...
Grazie...
Ciao ragazzi, aiutatemi...
esiste un modo per fare un:
DELETE TOP 50 * WHERE .......
ovvero cancellare i primi 50 recordset che rispettano la condizione WHERE...
Grazie...
"Quando si mangia il formaggio svizzero, che succede ai buchi?" (B. Brecht)
Visitate il mio sito:
www.clamorosalcibali.it
potresti fare una cosa del genere...non mi viene in mente altro:
così cancelleresti i primi 50 per l'identificativo...con un contatore sarebbe l'idealecodice:"delete from tabella where id in (select top 50 id from tabella)"
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"
delete from tab where ID in (SELECT TOP 50 * from tab WHERE Visibile='SI' order by ID)
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] You have written a subquery that can return more than one field without using the EXISTS reserved word in the main query's FROM clause. Revise the SELECT statement of the subquery to request only one field.
Mi da questo errore....
"Quando si mangia il formaggio svizzero, che succede ai buchi?" (B. Brecht)
Visitate il mio sito:
www.clamorosalcibali.it
creco che tu debba specificare un campo nella subquery
altrimenti non hai un criterio valido!codice:delete from tab where ID in (SELECT TOP 50 ID from tab WHERE Visibile='SI' order by ID)
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"
Ok grazie funziona![]()
"Quando si mangia il formaggio svizzero, che succede ai buchi?" (B. Brecht)
Visitate il mio sito:
www.clamorosalcibali.it
ma questo era ovvio!Originariamente inviato da Kai Hansen
Ok grazie funziona![]()
![]()
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"