初学mysql,不熟
比如,我要判断数据库dbTest中,是否存在用户表tuser,如果存在,不建表,不存在则才建表
我的写法如下,为何不行呢? use dbTest;
if not exists table tuser
create table tuser(userid int);下面这样好像也不行:
table tuser if not exists
create table tuser(userid int);
比如,我要判断数据库dbTest中,是否存在用户表tuser,如果存在,不建表,不存在则才建表
我的写法如下,为何不行呢? use dbTest;
if not exists table tuser
create table tuser(userid int);下面这样好像也不行:
table tuser if not exists
create table tuser(userid int);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货