如何在mysql触发器中构建json?

时间:2012-08-22 03:08:21

标签: mysql json

我有以下查询,我无法弄清楚它为什么不执行:

DROP TRIGGER IF EXISTS `feed_poll`;CREATE DEFINER=`gao`@`%` TRIGGER `feed_poll` AFTER INSERT ON `poll` FOR EACH ROW insert into feed_log
set feed_action = 'poll',
feed_require = CONCAT('"{title:",',new.title,'"image_url:",',new.image_url,'"email:",',new.email,'"date_of_creation:",',date_of_creation,'"category_str:",',new.category_str,'"choices_str:",',new.choices_str,'"redemption:",',new.redemption,'"question_str:",',new.question_str,'"location:",',new.location,'"geo_tag:",',geo_tag,"}"),
feed_time = NOw(),
feed_user = new.email

没有语法错误,它只是不执行。我哪里出错了?

0 个答案:

没有答案