Unix Technical Forum

insert data into graphic column

This is a discussion on insert data into graphic column within the DB2 forums, part of the Database Server Software category; --> Hi, How can i insert random data into a db2 table for a graphic data type column Thanks, Ganapath...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:31 AM
ganapath
 
Posts: n/a
Default insert data into graphic column

Hi,

How can i insert random data into a db2 table for a graphic data type
column

Thanks,
Ganapath

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:33 AM
tuarek
 
Posts: n/a
Default Re: insert data into graphic column

Ganapath,

I was able to insert random values with following statement:

insert into test_table values ( left(char(rand()),1) )

My graphic column's size is 1. Therefore It is inserting only one
char.

Regards

Mehmet

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com