on 06-12-2015 12:39 PM
Hi Friends,
I want to know which data type was best to choose for assigning Primary Keys.
If we choose INT as a data type by default it takes 32 bits (4 bytes) in Hana.
For even small values like 2,33,55 also i know that it takes 4 bytes only.
Kindly tell me the advantages & disadvantages of INTEGER over VARCHAR when use a column as a primary key.
Also tell me the advantages & disadvantages of VARCHAR over INTEGER when we assigning VARCHAR as a primary key.
Please Ellaborate
Regards
Nagarjuna
Please refine your question. Asking for a general pro/con discussion on a product feature won't yield anything usable.
If you tell us what your application requirements are, then there's at least a chance to discuss it.
- Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.