mysql删除一条最后数据_mysql 删除一条数据后显示这个,大佬们这个怎么解决?...

通过将binlog_format设置为MIXED,解决了在删除特定作者帖子时出现的错误。此更改避免了潜在的数据同步问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我把配置文件改 binlog_format = MIXED

错误就消失了。

数据表:

DROP TABLE IF EXISTS pre_forum_post;

CREATE TABLE pre_forum_post (

pid int(10) unsigned NOT NULL,

fid mediumint(8) unsigned NOT NULL DEFAULT '0',

tid mediumint(8) unsigned NOT NULL DEFAULT '0',

`first` tinyint(1) NOT NULL DEFAULT '0',

author varchar(15) NOT NULL DEFAULT '',

authorid mediumint(8) unsigned NOT NULL DEFAULT '0',

`subject` varchar(80) NOT NULL DEFAULT '',

dateline int(10) unsigned NOT NULL DEFAULT '0',

message mediumtext NOT NULL,

useip varchar(15) NOT NULL DEFAULT '',

`port` smallint(6) unsigned NOT NULL DEFAULT '0',

invisible tinyint(1) NOT NULL DEFAULT '0',

anonymous tinyint(1) NOT NULL DEFAULT '0',

usesig tinyint(1) NOT NULL DEFAULT '0',

htmlon tinyint(1) NOT NULL DEFAULT '0',

bbcodeoff tinyint(1) NOT NULL DEFAULT '0',

smileyoff tinyint(1) NOT NULL DEFAULT '0',

parseurloff tinyint(1) NOT NULL DEFAULT '0',

attachment tinyint(1) NOT NULL DEFAULT '0',

rate smallint(6) NOT NULL DEFAULT '0',

ratetimes tinyint(3) unsigned NOT NULL DEFAULT '0',

`status` int(10) NOT NULL DEFAULT '0',

tags varchar(255) NOT NULL DEFAULT '0',

`comment` tinyint(1) NOT NULL DEFAULT '0',

replycredit int(10) NOT NULL DEFAULT '0',

position int(8) unsigned NOT NULL AUTO_INCREMENT,

PRIMARY KEY (tid,position),

UNIQUE KEY pid (pid),

KEY fid (fid),

KEY authorid (authorid,invisible),

KEY dateline (dateline),

KEY invisible (invisible),

KEY displayorder (tid,invisible,dateline),

KEY `first` (tid,`first`)

) TYPE=MyISAM;

执行的SQL 语句:

DELETE FROM pre_forum_post WHERE `authorid`=1111118

是不是要修改 SQL

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值