tags:

views:

52

answers:

1

Well I'm a bit of an idiot, I wrote a view then accidently closed the window so now I don't have a copy of the query powering it. Syntax was:

 CREATE VIEW view_name AS SELECT something FROM somewhere

Is there a way to get the "SELECT something FROM somewhere" or am I going to have to rewrite it from memory?

+3  A: 

Try this:

SHOW CREATE VIEW view_name;
Fred