954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Regarding ASCII data type

Does SQL support ASCII data type?Or we need to do some type casting for it.?

srs_grp
Light Poster
34 posts since Sep 2008
Reputation Points: 9
Solved Threads: 0
 

not really sure what you are meaning

all characters will have an int value, and you can translate the int value back to a char

you can use ascii(char)
or
char(ascii)

select ascii('q')
-- returns 113

select char(113)
-- returns 'q'
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143
 

not really sure what you are meaning

all characters will have an int value, and you can translate the int value back to a char

you can use ascii(char) or char(ascii)

select ascii('q')
-- returns 113

select char(113)
-- returns 'q'


////////////////////////
Actually for r project, we need to store fields having data type as ASCII characters and we are not getting how to do it?

srs_grp
Light Poster
34 posts since Sep 2008
Reputation Points: 9
Solved Threads: 0
 

Having data type as what?

What are you not understanding?

dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You