我有这个数据库行,我只需要从中提取具有特定行值的数据库行,例如 template_number == 'template-1'。并且行值在类似于此的数组中
a:1:{s:11:"design";a:5:{s:19:"style";s:7:"default";s:15:"template_number";s:10:"template-4";s:20:"custom_template_type";s:1:"1";s:14:"menu_placement";s:5:"right";}}
最佳答案
你的问题听起来像是你想选择一个具有你想要的值(value)的行,所以可能是这样的:
select * from table where column1='value'
你会得到文本格式的数据
关于php - 如何提取具有特定行值但行值在数组中的特定数据库行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44492296/