找回密碼
 立即註冊
搜索
查看: 75|回復: 0

已使用最大ID說明

[複製鏈接]

229

主題

133

回帖

1477

積分

管理員

積分
1477
發表於 2025-9-8 23:47:56 | 顯示全部樓層 |閱讀模式
已使用最大ID說明

INFO - 载入已使用最大ID: 206218392



初始ID
0xBEBC200



那些ID是共用的請參考

select max(id)+1 as nextid from (select id from character_items
          union all select id from character_teleport
          union all select id from character_warehouse
          union all select id from character_elf_warehouse
          union all select objid as id from characters
          union all select clan_id as id from clan_data
          union all select id from clan_warehouse
          union all select id from character_shop
          union all select id from character_redeem_items
          union all select objid as id from pets) t
這段是取最大ID的sql         




***注意***
ID超過某個值程式會一直抱錯.應該是十幾億還多少.

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|小黑屋|天堂技術論壇

GMT+8, 2025-10-3 22:19 , Processed in 0.089127 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回復 返回頂部 返回列表