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 > Problems with Memo Fields in db2 by query in delphi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-05, 13:00
afbalani afbalani is offline
Registered User
 
Join Date: Feb 2005
Posts: 3
Exclamation Problems with Memo Fields in db2 by query in delphi

Hi,
I have a problem with a query in Delphi 7, when i do an update in a memo field of the DB2 database some caracters are puting in the final of the string. For example:
UPDATE TABLE SET MEMOFIELD = :MEMOFIELD WHERE ID = :ID
:MEMOFIELD = 'TEXT'
:ID = 10
The result in the DB2 is TEXT iiisskddä§.
This only happen with DB2 database, I tested with SQL, ORACLE8I and ORACLE9i and any of this databases update trash caracters.

Thank's
Reply With Quote
  #2 (permalink)  
Old 02-26-05, 15:23
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Is MEMOFIELD a column in your table or is it some special function?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-28-05, 06:45
afbalani afbalani is offline
Registered User
 
Join Date: Feb 2005
Posts: 3
It's a MEMOFIELD column in the database.
Reply With Quote
  #4 (permalink)  
Old 02-28-05, 11:17
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Sorry. I still do not understand what you mean.

To the best of my knowledge there is no such thing as "memofield" in DB2 unless it is a column name you assign in a table you create. There may an equivilent funciton in DB2 if you explain what it does.

Check the SQL Reference Vol 1 and 2 for details on DB2 syntax.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 03-01-05, 13:30
afbalani afbalani is offline
Registered User
 
Join Date: Feb 2005
Posts: 3
In the DB2 the field is VarChar, and when I execute that query the result in the database is whith some trash caracters.
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