mysql在字符串中查找值以双引号开头

时间:2016-04-06 04:33:16

标签: mysql

尝试确定包含公司名称,税号和城市的MySQL table列中单个字符串的值。下面显示的三个记录描述了这个例子:

custom_field
a:4:{i:1;s:9:"Some City";i:3;s:10:"Some number tax";i:4;s:0:"null for company";i:5;s:12:"Any company name";}
a:4:{i:5;s:17:"Any company name";i:1;s:8:"Some City";i:3;s:10:"Some number tax";i:4;s:0:"null for company";}
a:4:{i:5;s:77:"Any company name";i:1;s:6:"Some City";i:3;s:10:"Some number tax";i:4;s:0:"null for company";}

Opencart在完成结帐时通过注册模块页面插入这些记录。 注册模块为i:1 "Some City"i:3 "Some number tax"i:4 "null for company" , i:5 for "Any company name"
How does one go about finding the double quoted strings' value(s)?
The values are not null and they start with i:1,i:3,i:4
,i:5

0 个答案:

没有答案