Re: Conversion problem with cast function
Don't work for me ( your solution work, but not for me in this case :D )
I need that the HEX value have a fixed length.
Sample:
/*tResult is a table that contains only one column. (info varbinary(8000))*/
Insert Into tresult
Select Concat(Convert(ifnull(customerName, ''), binary(20)),
Convert(ifnull(customerID, 0), binary(4))
From Customers
/*
customerName Varchar(20) - THE CONVERSION WORK FINE
customerID Integer - THE CONVERSION DOESN'T WORK
*/
The main problem of your solution is that i can't fix the length of the value.
Subject
Written By
Posted
December 03, 2012 09:25AM
December 04, 2012 03:57AM
Re: Conversion problem with cast function
December 04, 2012 08:45AM
December 05, 2012 01:50AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.