mysql排序錯誤 MySQL中奇怪的排序錯誤?

2021-10-18 22:25:40 字數 1082 閱讀 2949

我的mysql伺服器(版本:5.0.51a-3ubuntu5.8)我有以下innodb表:

create table `kontostaende` (

`id` int(11) not null auto_increment,

`zeit` timestamp not null default current_timestamp,

`kontostand` decimal(8,3) not null,

`kontostand_zukunft` decimal(8,3) not null,

`konto` int(11) not null,

`protokoll` int(11) not null,

`bemerkung` text not null,

`veraenderung` decimal(8,3) not null,

`deleted` tinyint(1) not null default '0',

`monat_jahr` int(11) not null,

`offen` tinyint(1) not null,

primary key (`id`),

key `konto` (`konto`),

key `protokoll` (`protokoll`),

key `monat_jahr` (`monat_jahr`)

) engine=innodb default charset=latin1 ;有關示例資料,請參閱

以下查詢產生錯誤(錯誤排序的結果):

select id,kontostand

from `kontostaende`

where konto = '1'

order by id desc

limit 5它將顯示從id = 1到id = 7按id公升序排列的行。

如果我通過執行任何folloginw更改來更改查詢:

「限制5」 - >「限制6」

從查詢中刪除列「kontostand」

移除「where konto ='1'」

結果將按從「id = 8」開始的降序排列。

這裡有什麼問題?

mysql排序錯誤 這是MySQL排序錯誤嗎?

我面臨奇怪的伺服器行為 mysql 5.1.50.它錯誤地排序記錄.例如,我建立了乙個表測試 create table if not exists test id int 11 not null auto increment,title varchar 250 not null,primary ke...

mysql排序錯誤 這是MySQL排序錯誤嗎?

我面臨奇怪的伺服器行為mysql 5.1.50 它錯誤地排序記錄 例如,我建立了乙個表 test create table if not exists test id int 11 not null auto increment,title varchar 250 not null,primary ...

mysql錯誤文件 mysql 錯誤

開啟部落格發現載入失敗,檢視部落格日誌顯示mysql連線不上 啟動mysql發現錯誤日誌如下 190612 11 20 47 note plugin federated is disabled.190612 11 20 47 innodb the innodb memory heap is disa...