怎麼對序列化後的資料進行查詢

來源:互聯網
上載者:User
如何對序列化後的資料進行查詢?
如何對序列化後的資料進行查詢?


a:3:{s:4:"feed";a:5:{s:5:"doing";i:1;s:4:"blog";i:1;s:6:"upload";i:1;s:4:"poll";i:1;s:9:"newthread";i:1;}s:4:"view";a:8:{s:5:"index";i:0;s:6:"friend";i:0;s:4:"wall";i:0;s:4:"home";i:0;s:5:"doing";i:0;s:4:"blog";i:0;s:5:"album";i:0;s:5:"share";i:0;}s:7:"profile";a:8:{s:8:"realname";i:3;s:6:"gender";i:3;s:8:"birthday";i:3;s:9:"birthcity";i:3;s:10:"residecity";i:3;s:15:"affectivestatus";i:0;s:10:"lookingfor";i:0;s:9:"bloodtype";i:0;}}


像這樣的。

------解決方案--------------------
PHP code
------解決方案--------------------
什麼意思? 查詢資料庫?
$s='你的串';
select * from tt where `欄位`='$s';
------解決方案--------------------
還原序列化之後在查
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.