标签:
基础SQL语句,记录以备查阅。(在HeiDiSql中执行)
# 创建数据库 Create Database If Not Exists VerifyIdear Character Set UTF8; # 创建表 Create Table If Not Exists VerifyIdear.MyTable( ID Bigint(8) unsigned Primary key Auto_Increment, Updatetime DateTime, name VarChar(128) )Engine = MyISAM; # 切换到指定的数据库 use verifyidear; # 指定表增加字段 alter table MyTable add column If Not Exists adcolumn varchar(64) default ‘‘; # 删除表中字段 alter table MyTable drop column If Exists adcolumn;
标签:
原文地址:http://www.cnblogs.com/wildfox/p/5815505.html