Is there any bad affect if I use TEXT
data-type to store an ID number in a database?
I do something like:
CREATE TABLE GenData ( EmpName TEXT NOT NULL, ID TEXT PRIMARY KEY);
And actually, if I want to store a date value I usually use TEXT
data-type. If this is a wrong way, what is its disadvantage?
I am using PostgreSQL
.