how to view query in my sql code example Example: how to see the query of a view in mysql SHOW FULL TABLES IN sys WHERE table_type='VIEW';