Can anyone suggest me how can i store Multiple values in a single MySQL cell using Php? I am simply using the insert function but it is not helpfull at all.
2条回答 默认 最新
- douyi1855 2013-06-30 16:59关注
No, no no, no, NO!
Never store multiple values in a single cell. It will always get back to you. It is against the 3rd rule of DB normalization.
Insert only single values in a cell and add multiple records if you must. Example
photos table: id | filename 1 | 'myfoto.jpg' comments table: photo_id | user_id | comment 1 | 23 | 'great picture' 1 | 99 | 'nice' 1 | 7 | 'do not like it'
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 socket通信实现多人聊天室疑惑
- ¥15 DEV-C++编译缺失
- ¥33 找熟练码农写段Pyhthon程序
- ¥100 怎么让数据库字段自动更新
- ¥15 antv g6 力导向图布局
- ¥15 quartz框架,No record found for selection of Trigger with key
- ¥15 锅炉建模+优化算法,遗传算法优化锅炉燃烧模型,ls-svm会搞,后面的智能算法不会
- ¥20 MATLAB多目标优化问题求解
- ¥15 windows2003服务器按你VPN教程设置后,本地win10如何连接?
- ¥15 求一阶微分方程的幂级数