获取建表语句:
show create table 表名
表名
获取自定义函数创建语句:
show create function 函数名
函数名
获取存储过程创建语句:
show create procedure 函数名
索引没有现成的语句可以返回创建语句,不过可以获取到索引的详细内容:
show index from 表名