Quote:
|
Originally Posted by azs0309
delete from tab1 a where cast(a.col as BIGINT) not in (select cast(s.col as bigint) from tab2 s).
Thanks
|
make sure, that s.col is NOT NULL in tab2. If a NULL-value occures, the DELETE fails.
For performance reasons, omit the CAST() funcion ( at least in the WHERE-clause of the outer statement )