Re: [SQL] Convert int to hex

2005-06-05 Thread Ramakrishnan Muralidharan
@postgresql.org Subject: [SQL] Convert int to hex I want to be able to change an int4 from a sequence and store it as varchar in the database as a hex number. Is this possible? Thank you, Fernando ---(end of broadcast)--- TIP 4: Don't 'ki

Re: [SQL] Convert int to hex

2005-06-02 Thread Fernando Grijalba
Thank you, I found out after I posted the message. I did read the docs but must have looked somewhere else and I search the lists for hex only and it did not bring the answer back. It wasn't until I search for int4 to hex that I was able to find the answer. Thank you again. Fernando On 6/1/05,

Re: [SQL] Convert int to hex

2005-06-02 Thread Richard Huxton
Fernando Grijalba wrote: I want to be able to change an int4 from a sequence and store it as varchar in the database as a hex number. Is this possible? Try the to_hex() function - in the "Functions and operators" chapter of the manual - "Strings" section. -- Richard Huxton Archonet Ltd

[SQL] Convert int to hex

2005-06-01 Thread Fernando Grijalba
I want to be able to change an int4 from a sequence and store it as varchar in the database as a hex number. Is this possible? Thank you, Fernando ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster