![]() |
What is the difference between char,varchar2? Oracle table creation Char is stored as a fixed length string, Varchar2 is stored as a variable length string. Thus, if you define the table: Code: create table mytable ((charfield,varfield) Values ('Hello','Hello'); The first fields will take 50 bytes while second will take only 5. It is usually recommended to store strings as varchar. |
| All times are GMT +5. The time now is 12:30 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.