sprintf(sql, "INSERT lora_net(eui,online) VALUES('%s', 1) ON DUPLICATE KEY UPDATE online=1", eui.c_str());
插入更新自行判断
sprintf(sql, "INSERT lora_net(eui,online) VALUES('%s', 1) ON DUPLICATE KEY UPDATE online=1", eui.c_str());
插入更新自行判断
转载于:https://www.cnblogs.com/thbCode/p/8990722.html