MySQL報這個錯誤,是哪裡錯了呢?[Err] 1064 - You have an error .....
下面這個錯誤是哪裡錯了呢?
[SQL]
CREATE TABLE `tn_Users` (
UserId BigInt NOT NULL,
UserName Varchar(64) NOT NULL,
Password Varchar(128) NOT NULL,
PasswordFormat Int(11) NOT NULL DEFAULT '1',
PasswordQuestion Varchar(64) NOT NULL DEFAULT '',
PasswordAnswer Varchar(64) NOT NULL DEFAULT '',
AccountEmail Varchar(64) NOT NULL DEFAULT '',
IsEmailVerified TinyInt NOT NULL DEFAULT '0',
AccountMobile Varchar(64) NOT NULL DEFAULT '',
IsMobileVerified TinyInt NOT NULL DEFAULT '0',
TrueName Varchar(64) NOT NULL DEFAULT '',
NickName Varchar(64) NOT NULL DEFAULT '',
ForceLogin TinyInt NOT NULL DEFAULT '0',
IsActivated TinyInt NOT NULL DEFAULT '1',
DateCreated DateTime NOT NULL,
IpCreated Varchar(64) NOT NULL DEFAULT '',
UserType TinyInt NOT NULL DEFAULT '1',
LastActivityTime DateTime NOT NULL,
LastAction Varchar(512) NOT NULL DEFAULT '',
IpLastActivity Varchar(64) NOT NULL DEFAULT '',
IsBanned TinyInt NOT NULL DEFAULT '0',
BanReason Varchar(64) NOT NULL,
BanDeadline DateTime NOT NULL,
IsModerated TinyInt NOT NULL DEFAULT '0',
IsForceModerated TinyInt NOT NULL DEFAULT '0',
DatabaseQuota Int(11) NOT NULL DEFAULT '0',
DatabaseQuotaUsed Int(11) NOT NULL DEFAULT '0',
ThemeAppearance Varchar(128) NOT NULL,
IsUseCustomStyle TinyInt NOT NULL DEFAULT '0',
Avatar Varchar(128) NOT NULL DEFAULT '',
FollowedCount Int(11) NOT NULL DEFAULT '0',
FollowerCount Int(11) NOT NULL DEFAULT '0',
ExperiencePoints Int(11) NOT NULL DEFAULT '0',
ReputationPoints Int(11) NOT NULL DEFAULT '0',
TradePoints Int(11) NOT NULL DEFAULT '0',
TradePoints2 Int(11) NOT NULL DEFAULT '0',
TradePoints3 Int(11) NOT NULL DEFAULT '0',
TradePoints4 Int(11) NOT NULL DEFAULT '0',
FrozenTradePoints Int(11) NOT NULL DEFAULT '0',
'[Rank]' Int(11) NOT NULL DEFAULT '1',
AuditStatus Smallint NOT NULL DEFAULT '1',
DateAvatar Bigint NOT NULL DEFAULT '1',
KEY `IX_AccountEmail` (`AccountEmail`),
KEY `IX_AccountMobile` (`AccountMobile`),
KEY `IX_FollowedCount` (`FollowedCount`),
KEY `IX_FollowerCount` (`FollowerCount`),
KEY `IX_Rank` (`[Rank]`),
KEY `IX_UserName` (`UserName`),
PRIMARY KEY (`UserId`)
)ENGINE=innodb DEFAULT CHARSET=utf8;
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''[Rank]' Int(11) NOT NULL DEFAULT '1',
AuditStatus Smallint NOT NULL DEFAULT '1' at line 41
相關閱讀:
GUI實作的原理有相關的資料嗎
thinkphp 好像不支援動态Include 檔案?
手機端用rem機關預設字型設定為多大?有什麼好的css手機端架構?
THinkPHP開發微信支付,如何配置微信支付授權目錄?
移動端點選事件失效
GIT遠端同步的問題
彙編單步執行時發現了一個 call .+914
PHP使用phpmailer發送郵件?
ThinkPHP重寫模式下URL大小寫問題
vm虛拟機裝的centos搭建郵件伺服器 給qq郵箱發郵件出現報錯
Go如何通用的處理請求回來的json資料?
nodejs微信開發 40016錯誤
ajax Authorization 鑒權失敗
為什麼伺服器的時間經常需要校對?
Bind9 設定了轉發但似乎沒用
為什麼latex中指令的選項有時在參數前面有時在參數後面?
js怎麼控制手機端圖檔顯示16:9
代碼改動,浏覽器自動重新整理,工具
QT軟體中QByteArray轉QString,死活轉不了
為什麼用條件變量同步時,發生信号丢失呢?