Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / July 2006

Tip: Looking for answers? Try searching our database.

iSeries DB2 Delete Statement Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 12 Jul 2006 16:11 GMT
Found some samples that say this statement should work, but is doesn't
(invalid token at "Where (Key1," ).   Is there something I'm doing
wrong or a better way to accomplish what I'm trying to do?

delete from FileA
Where (Key1, Key2)

not In
   (select                  
     Key1, Key2 From FileB)

TIA

Chris
Karl Hanson - 12 Jul 2006 18:34 GMT
> Found some samples that say this statement should work, but is doesn't
> (invalid token at "Where (Key1," ).   Is there something I'm doing
[quoted text clipped - 6 lines]
>     (select                  
>       Key1, Key2 From FileB)

You are not doing anything wrong - this is supported in V5R4 but not
prior to that.  There may be another way to phrase the WHERE clause to
get the same result, but I can't offer a suggestion offhand.

--
Karl Hanson
Chris - 12 Jul 2006 19:14 GMT
> You are not doing anything wrong - this is supported in V5R4 but not
> prior to that.  There may be another way to phrase the WHERE clause to
> get the same result, but I can't offer a suggestion offhand.
>
> --
> Karl Hanson

Ah, I'm on V5R3
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.