MySql错误#1064出现. [英] MySql error # 1064 comes up.
本文介绍了MySql错误#1064出现.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我正在使用以下SQL:
Hello,
I''m using this SQL :
ALTER TABLE `Houses` ADD `Phase` VARCHAR NOT NULL
这是出现的错误:
And this is the error that comes up :
#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 'NOT NULL' at line 1
我正在使用MySql clint版本5.1.62.
有什么问题?有任何想法吗?
I''m using MySql clint version 5.1.62.
What''s the problem? Any ideas?
推荐答案
您需要指定大小:
You need to specify the size:
ALTER TABLE `Houses` ADD `Phase` VARCHAR(100) NOT NULL
这篇关于MySql错误#1064出现.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文