You could browse the table in phpmyadmin then click export, select structure only and you will have the query to create the same table. If you want the query to insert data into the table, browse the table in phpmyadmin, click insert, fill in the values and you will see the generated query