Integer vs String in database

前端 未结 16 658
后悔当初
后悔当初 2020-12-05 13:42

When defining datatypes in a database, I have always had a problem with choosing whether to use integers or strings to store certain \'numerical\' data.

Say I am bui

16条回答
  •  被撕碎了的回忆
    2020-12-05 14:18

    You should only use numeric fields if you have to perform arithmetic operations with that fields. Otherwise just go with string/varchar/etc

提交回复
热议问题