set @start_row = 0+start_string; set @max_count = 0+max_string;select fields from t_table where conditions limit @start_row,@max_count
PREPARE STMT1 FROM 'SELECT * FROM merchantcrm.merchant_cm_merchant_member_00 LIMIT ?,?'; SET @START = '0'; SET @SIZE = '4';EXECUTE STMT1 USING @START,@SIZE; 经过验证发现其实string型本身是可以的,可能是分库分表规则zdal那边有问题,后来在规则检验前强制转化了下可以了 不过期待更好的回答
set @start_row = 0+start_string;
set @max_count = 0+max_string;select
fields
from
t_table
where
conditions
limit @start_row,@max_count
SET @START = '0';
SET @SIZE = '4';EXECUTE STMT1 USING @START,@SIZE;
经过验证发现其实string型本身是可以的,可能是分库分表规则zdal那边有问题,后来在规则检验前强制转化了下可以了 不过期待更好的回答