Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CHARACTER

Former Member
0 Likes
892

Hi,

im just curious, can anyone help me regarding this.

for ex. data: v_str type string,

v_char(10000) type c.

does v_char has no limitation aside to the number like '10000' you put. so any number i want i can put to this.

isn't it that type string has noh limitation, is type character the same as type string.

pls help me.

thanx in advance,

jc

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
857

Hi,

The maximum length specification for type C is 65535..

If you declare v_char(65536) it will give you a syntax error..

Thanks,

Naren

6 REPLIES 6
Read only

Former Member
0 Likes
857

Hi,

check this definition...

STRING for character strings

A string is a sequence of characters with variable length. A string can contain any number of alphanumeric characters. The length of a string is the number of characters multiplied by the length required for the internal representation of a single character.

Thanks,

Naren

Read only

0 Likes
857

hi,

how about the character type, does it has a limitation or just like string which has a variable length.

thanx, jc

Read only

Former Member
0 Likes
858

Hi,

The maximum length specification for type C is 65535..

If you declare v_char(65536) it will give you a syntax error..

Thanks,

Naren

Read only

0 Likes
857

hi,

does it mean that when my v_char(65535) is declare however my text lenght is more than 65355 the excess in 65535 will not be display. does my interprtation is correct.

thanx, jc

Read only

Former Member
0 Likes
857

Hi,

I think so...

Thanks,

Naren

Read only

0 Likes
857

hi,

thanx to your help.

regards,

jc