24.01.2016, 15:30
Hey,
I recently had some problems with my hoster and I ended up loosing database structure. So of course I could go through my whole script and search for all the tables and fields which need to be created but that would need forever. Is there any way in MySQL to create a table with it's field automatically if they don't exist without using CREATE TABLE ?
For example: I'm using a query which should insert stuff into a field. Field and table aren't existing. Now as they aren't existing they should be created and my stuff should be inserted.
Thanks in advance.
I recently had some problems with my hoster and I ended up loosing database structure. So of course I could go through my whole script and search for all the tables and fields which need to be created but that would need forever. Is there any way in MySQL to create a table with it's field automatically if they don't exist without using CREATE TABLE ?
For example: I'm using a query which should insert stuff into a field. Field and table aren't existing. Now as they aren't existing they should be created and my stuff should be inserted.
Thanks in advance.