将复选框网格值保存到db [英] save checkbox grid value to db
本文介绍了将复选框网格值保存到db的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我需要将复选框贪婪值保存到表格
网格如,
ABC D
X 1 0 1 1
Y 0 1 1 0
Z 0 1 0 0
保存
其中1为选中复选框,0为未选中
我想知道哪种结构有效插入值
先谢谢
Hello frnds,
I need to save checkbox greed values to table
The grid like,
A B C D
X 1 0 1 1
Y 0 1 1 0
Z 0 1 0 0
Save
where 1 is selected checkbox and 0 is unselected
I want to know what structure will be efficient for insert the values
Thanks in Advance
推荐答案
布尔
DataType
将是最好的。
如果选中,请存储true
,否则存储false
。
Boolean
DataType
will be the best.
If checked, storetrue
, else storefalse
.
这篇关于将复选框网格值保存到db的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文