If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > subselect varchar (strings)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-18-03, 05:12
poekel poekel is offline
Registered User
 
Join Date: Nov 2003
Location: DE
Posts: 6
subselect varchar (strings)

hello,

my problem is the following: i want to update a table and set its entries as deleted if in another row this entry not exists ( the id is not there):

example:

UPDATE tableA
SET
deleted = '1'
WHERE
idA NOT IN
( SELECT idB FROM tableB );

the id columns are varchars...this seems to be the problem!

the error is:
SQL0408N A value is not compatible with the data type of its assignment target. Target name is "<name>".

i cannot change the varchar to char or something else...

anyone can help me?
thank you.

P
Reply With Quote
  #2 (permalink)  
Old 12-18-03, 05:25
Walter Janissen Walter Janissen is offline
Registered User
 
Join Date: Nov 2003
Location: Germany
Posts: 62
Hi

On what platform are you? Is it mainframe? I think the problem is with the column "deleted". May be this column is numeric?
Reply With Quote
  #3 (permalink)  
Old 12-18-03, 09:02
poekel poekel is offline
Registered User
 
Join Date: Nov 2003
Location: DE
Posts: 6
Quote:
Originally posted by Walter Janissen
Hi

On what platform are you? Is it mainframe? I think the problem is with the column "deleted". May be this column is numeric?
thanks but the problem was not a problem :-) it was my fault...you are really right...the problem was another column.

P
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On