【发布时间】:2013-03-12 03:30:10
【问题描述】:
我想将如下所示的哈希值插入到 mysql 列中,
{:sub => ["at","div.product-info"],
1 => [["at","span#hs18Price"]],
:avail => ["at","strong.out_stock"],
:soffer => ["at","div.freebie"],
:stime =>["search","div[@class='costs']//span[@class='days']"],
:scost => [300,30] }
我试过了,它抛出以下错误,
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'costs...
有什么帮助吗?
编辑:
忘记活动记录和序列化。我想用原始的 sql 来做。
【问题讨论】: