Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/main/     Datei vom 1.9.2026 mit Größe 588 B image not shown  

Quelle  multidelete_engine.result   Sprache: Lisp

 

# Check that limits work with hints & PS protocol
create table t2 (id int, index xid(id));
insert into t2 values (1),(10),(2),(9),(3),(8);
prepare stmt from
"DELETE t2.* FROM t2 use index(xid) ORDER BY (id) LIMIT ?";
set @lim= 1;
execute stmt using @lim;
select * from t2 ORDER BY (id);
id
2
3
8
9
10
set @lim= 3;
execute stmt using @lim;
select * from t2 ORDER BY (id);
id
9
10
set @lim= 2;
execute stmt using @lim;
select * from t2 ORDER BY (id);
id
insert into t2 values (1),(10),(2),(9),(3),(8);
set @lim= 6;
execute stmt using @lim;
select * from t2 ORDER BY (id);
id
drop table t2;

Messung
CHZG
100100100100

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland