字段命名 - mysql 字段太长,如何简要字段规范?
天蓬老师
天蓬老师 2017-04-17 13:25:21
0
2
812
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
Peter_Zhu

Product type parent table, its primary key is "product_parent_type_id", why not just use "id"?
When writing SQL, it should be written like this:
`product_parent_type`.`product_parent_type_id`
Don’t you think this The place is really too long.

`product_parent_type`.`id`

How clear.

刘奇

Is it better to call the primary key of the parent table of the product type product_category_id? Personally, I think that when the naming length is too long, you can try to see if there is an equally descriptive name (of course this requires accumulation and experience), but it really doesn’t work a little longer. Better than a short meaningless name.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!