sql - Implicit conversion between int and varchar -


below query show conversion error.

select 'a' union select 1 

to execute have explicitly convert it..

is there other way implicit conversion?

may can convert integer varchar explicitily.but in implicit can convert alphabets convert using ascii values

select ascii('a') union select 1 

or

select 'a' union select cast(1 varchar) 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -