mirror of
https://github.com/MariaDB/server.git
synced 2026-03-01 14:08:41 +01:00
15 lines
279 B
Text
15 lines
279 B
Text
|
|
--source include/have_sequence.inc
|
|
|
|
create table t (c int);
|
|
insert into t select seq from seq_1_to_10000;
|
|
|
|
alter table t
|
|
add column vc int as (c + 1),
|
|
add index(vc);
|
|
|
|
explain select vc from t order by c + 1;
|
|
explain select vc from t order by c + 1 limit 10;
|
|
|
|
drop table t;
|
|
|