mysql 操作记录

时间:2018-06-14 16:57:06   收藏:0   阅读:221
一些重要操作记录。

避免重复插入
INSERT INTO lhlh_emotion (word, freq, tag)
SELECT ‘{emotion}‘, 100, ‘a‘
from DUAL
where not exists(select word from lhlh_emotion where word=‘{emotion}‘);

原文:https://www.cnblogs.com/bingwork/p/9183268.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!