i have some hex data in db. so i need to unhex it. something like: unhex('414243'). is there any functions or tricks to do it?
i saw unhex function in actian ingres db.
i have some hex data in db. so i need to unhex it. something like: unhex('414243'). is there any functions or tricks to do it?
i saw unhex function in actian ingres db.
Copyright © 2021 Jogjafile Inc.
There is no 'unhex' function in Actian PSQL / Actian Zen / Pervasive PSQL as of v15. You might be able to write a function that does the unhex or you can just unhex it once it is returned to the application.
Depending on your data you might have another option. For example if you hex is stored in a
Binary
field, you might be able tocast
it as achar
field like:which results in: