Converting Oracle query to MySQL query. all_indexes -
i'm trying convert oracle query mysql query.
my oracle query has this:
create or replace procedure myproc() iname all_indexes.index_name%type; oname all_indexes.owner%type; begin // end;
how can port mysql, since mysql doesn't have all_indexes public environment variable?
just use varchar datatype
create or replace procedure myproc() begin declare iname varchar(50); declare oname varchar(50); // end;
you can query information_schema.statistics obtain names od indexes
select * information_schema.statistics
Comments
Post a Comment