I am rolling back to MySQL GUI Tools\' MySQL Query Browser since I can\'t find the shortcut to get a table\'s creation script in MySQL Workbench.
1 use command
show create table test.location
right click on selected row and choose Open Value In Viewer
select tab Text