[RE-POST]数据库中需要为2.3x3.4大小的列分配的数据类型 [英] [RE-POST] what datatype needs to assigned for 2.3x3.4 size column in database

查看:95
本文介绍了[RE-POST]数据库中需要为2.3x3.4大小的列分配的数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要为2.3x3.4或1x2输入的值分配什么数据类型?



[这是用于2维大小的数据类型 [ ^ ],现有答案被忽略 - SA]

解决方案

你接受的原始问题答案非常糟糕。如今,使用字符串是开发人员显示的非常糟糕的趋势:使用表示数据的字符串而不是数据本身。相反,您需要使用数字数据类型分隔列,例如width和height。



-SA

what datatype to to assign for value to be entered for 2.3x3.4 or 1x2?

[This is re-post of data type to use for 2dimentional size[^], existing answers are ignored — SA]

解决方案

The answer to you original question you accepted is quite bad. Using strings for such thing is a really bad trend shown by developers these days: working with strings representing data instead of data itself. Rather, you need to have to separate columns with numeric data type, such as "width" and "height".

—SA


这篇关于[RE-POST]数据库中需要为2.3x3.4大小的列分配的数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆