MYSQL不存在就创建数据库/表

如果不存在就创建数据库:

Create Database If Not Exists MyDB Character Set UTF8;

如果不存在就创建数据表:

Create Table If Not Exists MyDB.MyTable(

ID Bigint(8) unsigned Primary key Auto_Increment,

thTime DateTime,

name  VarChar(128)

)Engine MyISAM

猜你喜欢

转载自blog.csdn.net/zhenyu5665/article/details/72868150