mirror of
https://github.com/MariaDB/server.git
synced 2025-07-15 07:48:13 +02:00

if we don't need to print field's table name, we surely don't need to print field's db name either
17 lines
551 B
Text
17 lines
551 B
Text
create database mysqltest1;
|
|
create table mysqltest1.t1 (i int, j int as (i) persistent);
|
|
show create table mysqltest1.t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`i` int(11) DEFAULT NULL,
|
|
`j` int(11) GENERATED ALWAYS AS (`i`) STORED
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
alter table mysqltest1.t1 add index (i);
|
|
show create table mysqltest1.t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`i` int(11) DEFAULT NULL,
|
|
`j` int(11) GENERATED ALWAYS AS (`i`) STORED,
|
|
KEY `i` (`i`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
|
drop database mysqltest1;
|