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 / May 2004

Tip: Looking for answers? Try searching our database.

How to insert a DBCLOB data?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chunglun - 03 May 2004 03:55 GMT
Hi,

I am inserted a record into a table that contains a DBCLOB field, the
record is successfully added after executing the statement except that
the DBCLOB field has inserted nothing. I have tried all the followings
for the DBCLOB field:

'sample'
n'sample'
g'sample'

all of them returned nothing for the field of the new record. Could
anyone please give me some idea on it?

The version of DB2 I am using is ESE UDB 8.1.5, thanks!

Chunglun
Sherman Lau - 03 May 2004 14:42 GMT
What is the codeset of your database?

GRAPHIC, VARGRAPHIC, LONG VARGRAPHIC and DBCLOB are defined to store pure
double-byte characters.
'sample' are 6 single byte characters. If you are using non-Unicode database
and the code pages of your set up are different, your input, 'sample' will
be replaced as subsitution characters after code page conversion. Therefore
when you select the data back, the row shows empty character. g'sample'
should be fine if you are using non single byte characters.

Sherman

> Hi,
>
[quoted text clipped - 13 lines]
>
> Chunglun
chunglun - 04 May 2004 03:46 GMT
Thanks! Sherman

For my case, I am using .NET (ASP.NET with Server Side program
developed in C#) connecting DB2. The database codeset is already
utf-8, and the code pages I set up also in utf-8. Still, I can't
insert the data I want properly, why is it so?

Chunglun
 
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.