INSERT INTO `[Q]option` (`name`,`pid`,`value`,`sort`) select '手写签名','6','graph','26' from `[Q]menu` WHERE `id`=1 and NOT EXISTS(SELECT 1 FROM `[Q]option` where `name`='手写签名' and `pid`='6');
ROCKSPLIT
INSERT INTO `[Q]option` (`name`,`pid`,`value`,`sort`) select '手机端是否显示联系人','475','是','0' from `[Q]menu` WHERE `id`=1 and NOT EXISTS(SELECT 1 FROM `[Q]option` where `name`='手机端是否显示联系人' and `pid`='475');