sql - how to delete every row not containing a list of values -


i'm trying delete remaining row in table doesn't exist in list program i'm making generates. 1 of ways have tried. each way change continue 'invalid relational operator' error

delete bb_pub.epub_agent_trnprt  '39800013','39800022','39800009','39800023','39800011','39900001','39800025','39800016','39800014','39600003'  not in (transport_id); 

try this

  delete bb_pub.epub_agent_trnprt      transport_id      not in     ('39800013','39800022','39800009','39800023',     '39800011','39900001','39800025','39800016','39800014','39600003'); 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -