mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
b5615eff0d
Idea comes from MySQL which does something similar
7 lines
239 B
Text
7 lines
239 B
Text
create function udf_sequence returns integer soname "UDF_EXAMPLE_LIB";
|
|
create table t1 (n int key not null auto_increment, msg int as (udf_sequence()) virtual);
|
|
select * from t1;
|
|
n msg
|
|
# restart
|
|
drop table t1;
|
|
drop function udf_sequence;
|