View previous topic :: View next topic |
Author |
Message |
mfuser Banned
Joined: 01 Mar 2005 Posts: 105 Topics: 58
|
Posted: Sat Jul 08, 2006 6:45 am Post subject: update a column of character type with Hexadecimal values |
|
|
Members,
I am trying to update a column which is POS CHAR(04) with a hexadecimal value 14250204 using query:
Code: |
UPDATE TABLENAME SET POS = HEX(14250204) WHERE SEQNAME = 'ABCD'
|
I am getting the error
Code: |
QUERY MESSAGES:
The value beginning with "00D970DC" is too long.
|
If i would like to insert / update the POS value with Hexadecimal 14250204 what should be the syntax ? Can anybody help me out in this regard as my intention is to have some values ? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12385 Topics: 75 Location: San Jose
|
Posted: Sat Jul 08, 2006 7:03 am Post subject: |
|
|
mfuser,
If you are trying to update the column with hex value then you don't use the HEX scalar function once again. Try this
Code: |
UPDATE TABLENAME SET POS = X'14250204' WHERE SEQNAME = 'ABCD'
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|