这是我要存储在SQLite数据库中的内容的摘录:
array(10) {
[0]=>
object(stdClass)#9 (3) {
["name"]=>
string(10) "cloudFiles"
["endpoints"]=>
array(4) {
[0]=>
object(stdClass)#10 (4) {
["region"]=>
string(3) "ORD"
在SQLite中存储此内容的最佳方法是什么,以便我可以轻松地将其转换为原始格式?
同样在我的SQLite DB中,我选择了文本作为格式。这样好吗?还是可以让我存储更多信息的另一种格式?
使用序列化它serialize()
。然后在检索时使用unserialize()
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句