IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can I Using IN keyword in delete query


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sameena

New User


Joined: 27 Nov 2006
Posts: 6
Location: india

PostPosted: Fri Dec 01, 2006 10:49 am
Reply with quote

is this a valid delete query?

DELETE FROM <table-name> WHERE <column name> IN (val1,val2,val3)
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1209
Location: Bangalore,India

PostPosted: Fri Dec 01, 2006 11:31 am
Reply with quote

HI Sameena,

Yeap it is it will delete all the row from table where coloum value is val1 ,val2 or val3
Back to top
View user's profile Send private message
sameena

New User


Joined: 27 Nov 2006
Posts: 6
Location: india

PostPosted: Fri Dec 01, 2006 11:39 am
Reply with quote

Thank You icon_razz.gif
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Need help with ADABAS query (COBOL-AD... All Other Mainframe Topics 1
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts RC query -Time column CA Products 3
Search our Forums:


Back to Top