Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过 sql2excell 组件为 joomla 制作 csv 文件。它通过 SQL 查询调用数据,所以我通过 SQL 查询检索所有信息。问题是某些字段包含我不想向最终用户显示的额外信息。
例如,当我通过查询检索时,这些字段显示以下数据:
a:3:{s:4:"city";s:3:"000";s:3:"ext";s:3:"000";s:3:"tel";s:4:"0000";}
我只想要引号中的值,如下所示:0000000000 有什么方法可以通过 SQL 查询得到这个?
0000000000
不。
这些值是序列化的,MySQL 没有反序列化它们的函数。您必须在 MySQL 和 sql2excel 之间架起一座桥梁来解码它,但我不熟悉这个工具,所以帮不上什么忙。