Get Tables
#1

Hey,

I will make an automatic MySQL System which creates the Tables in the Script..
The MySQL Command is CREATE TABLE IF NOT EXISTS or so, right?
But I will check, if the Table Exists.
Do you have a command for me?
I mean something like this:
If(TableExists())

I use the MySQL Version R7 by BlueG.
Reply
#2

Код:
CREATE TABLE IF NOT EXISTS
IF NOT EXISTS. It won't create the table if it already exists... there's no reason to do a secondary check!
Reply
#3

Okay,

But I have a public CreateDataBase();
And every time, the public Print ("Database created");
I will check if table exists, then no Print-Message...

Hope you can help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)