Delete From in Not In in Postgresql

command ini digunakan saat ingin delete table dengan kondisi yang disebut yang tidak didelete

DELETE FROM otp.msection WHERE ssect NOT IN (‘4210’)
and ssect NOT IN (‘4220’)
and ssect NOT IN (‘4310’)
and ssect NOT IN (‘4320’)
and ssect NOT IN (‘4110’)
and ssect NOT IN (‘4120’)
and ssect NOT IN (‘4130’)
and ssect NOT IN (‘4140’)
and ssect NOT IN (‘5230’);

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s