mysql> show create table t_asset \G
*************************** 1. row ***************************
Table: t_asset
Create Table: CREATE TABLE t_asset (
id bigint(20) NOT NULL,
ast_type int(11) NOT NULL COMMENT ‘id’,
act_id bigint(20) NOT NULL COMMENT ‘id’,
ccy_id int(11) NOT NULL COMMENT ‘id’,
uid bigint(20) NOT NULL COMMENT ‘用户id’,
avail decimal(36,18) DEFAULT NULL COMMENT ‘可用’,
trd_hold decimal(36,18) DEFAULT NULL COMMENT ‘’,
non_trd_hold decimal(36,18) DEFAULT NULL COMMENT ‘冻结’,
iso_avail decimal(36,18) DEFAULT NULL COMMENT ‘金’,
iso_hold decimal(36,18) DEFAULT NULL COMMENT ‘冻结’,
net_debt decimal(36,18) DEFAULT NULL COMMENT ‘净负债’,
version bigint(20) NOT NULL DEFAULT ‘0’,
c_time bigint(20) DEFAULT NULL,
u_time bigint(20) DEFAULT NULL,
state tinyint(4) DEFAULT NULL,
eq decimal(36,18) DEFAULT NULL,
net_mgn decimal(36,18) DEFAULT NULL,
order_lost decimal(36,18) DEFAULT NULL,
asset_value decimal(36,18) DEFAULT NULL,
debt decimal(36,18) DEFAULT NULL,
mm decimal(36,18) DEFAULT NULL,
upl decimal(36,18) DEFAULT NULL,
PRIMARY KEY (uid,id) /*T![clustered_index] CLUSTERED */,
UNIQUE KEY IDX_UNI_ACT_AST_CCY (act_id,ast_type,ccy_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
1 row in set (0.00 sec)
SELECT
id,
ast_type,
act_id,
ccy_id,
uid,
avail,
trd_hold,
non_trd_hold,
iso_avail,
iso_hold,
net_debt,
version,
c_time,
u_time,
state,
eq,
net_mgn,
order_lost,
asset_value,
debt,
mm,
upl
FROM
t_asset
WHERE
(id > 240000000014681264)
ORDER BY
id
LIMIT
1000;