我正在使用 Microsoft SQL Server 2012 Express。MySQL的以下代码在运行查询时给了我错误,谁能指导我如何纠正它?
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
create database /*!32312 IF NOT EXISTS*/ `android_api`/*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;
use `android_api` ;/** Selecting Database **/
DROP TABLE IF EXISTS `users`;
/** Creating Users Table **/
create table `users`(
uid int(11) primary key auto_increment,
unique_id varchar(23) not null unique,
name varchar(50) not null,
email varchar(100) not null unique,
encrypted_password varchar(80) not null,
salt varchar(10) not null,
created_at datetime,
updated_at datetime null
)ENGINE=InnoDB AUTO_INCREMENT=877888 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP TABLE IF EXISTS `events`;
/** Creating Users Table **/
create table `events`(
eid int(11) primary key auto_increment,
unique_id varchar(23) not null unique,
title varchar(50) not null,
date varchar(50) not null,
time varchar(50) not null,
location varchar(100) not null,
person varchar(20) not null,
phone varchar(20) not null,
budget varchar(20) not null,
comments varchar(50) not null,
resource varchar(150) not null,
uuid varchar(23) not null,
created_at datetime,
updated_at datetime null
)ENGINE=InnoDB AUTO_INCREMENT=877888 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;