执行:
create table hsnl_db.hsnl_resource(
res_id int not null primary key auto_increment,
res_name varchar(64) not null,
res_type char(1) not null,
res_flag char(1) not null default '1',
res_img_url varchar(64),
res_app_url varchar(64),
res_size varchar(8) not null,
res_num int(8) default 0,
res_xz_integral int(2),
res_tj_integral int(2),
res_cgtj_integral int(2),
res_priority int(1) default 0,
res_introduce varchar(1024),
res_package varchar(256),
res_createtime timestamp default now()
);
报错信息:
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 'int(8) default 0
解决办法:res_num int(8) default 0, 改为res_num int default 0, 即可。
执行结果如下图:
分享到:
相关推荐
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘order’ at line 1 数据库报错如下: Error querying database. Cause: java.sql.SQLSyntaxErrorException: ...
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘(0) NOT NULL, endTime datetime(0) NOT NULL,avaliableTime int(8) NOT N’ at line 5 今天帮一个朋友调试...
在编写自己的程序时,需要实现将数据导入数据库,并且是带参数的传递。 执行语句如下: sql_str = INSERT INTO teacher(t_name, t_...ProgrammingError: (1064, “You have an error in your SQL syntax; check the m
本文实例讲述了mysql报错:MySQL server version for the right ... check the manual that corresponds to your MySQL server version for the right syntax to use near ‘type=InnoDB’ at line 1 二、解决方案
You have an error in your SQL ... check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by 'password' with grant option' mysql 5和mysql 8都有这个问题
mysql_exporter消除了"Error 1064 (42000): You have an ... check the manual that corresponds to your MySQL server version for the right syntax to use near 'SLAVE STATUS' at line 1。最新代码个人编译版本
### The error occurred while setting parameters ### SQL: SELECT * FROM Domain_System WHERE domain = ? LIMIT 1 ### Cause: ...
前几天帮同事解决一个案例,在主从复制环境下,从库上的MySQL版本号是5.5.5,遇到下面的错误: #其他非相关信息我都隐藏掉了 ... check the manual that corresponds to your MySQL server version for t
check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqltump -u root -p sa > D:/sa.sql' at line 1 原因:mysqldump是mysql用于转存储数据库的实用程序并不是...
mysqldump: Couldn’t execute ‘SET OPTION SQL_QUOTE_SHOW_CREATE=1’: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use ...
check the manual that corresponds to your MySQL server versio····这句话对于咱们并不陌生,无非就是多了“,”之类的问题。但是你如果无意之中添加了一个mysql中的保留字段作为数据库中存贮的字段名,悲剧...
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘`company_id` int) RETURNS varchar(20) CHARSET utf8 BEGIN 本来的函数: CREATE DEFINER=`33323`@`%` ...
本文将详细讲解如何使用JMeter的JDBC Request组件进行数据库交互,以"JDBC Requst 实例1"为例,结合提供的JMX文件"JDBC_MySQL.jmx"进行说明。 首先,我们要理解JDBC(Java Database Connectivity)是Java平台中用于...
check the manual that corresponds to your MySQL server version for the right syntax to use near '...' at line X",提示SQL语句中的语法错误,需要检查并修正语句。 7. 错误代码1452: "Cannot add or update...
check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. 解决方法 解决该问题有两种方法:一种是使用替换法,另一种是使用 PreparedStatemenc 对象...
在搭建springmvc框架时,底层使用hibernate4.1.8,数据库使用mysql5.1,使用hibernate自动生成数据库表时,hibernate方言使用... check the manual that corresponds to your MySQL server version for the right synt
命令成功执行。操作发生错误,相关的信息为... Check the manual that corresponds to your MySQL server version for the right syntax to use near ‘old_password(‘123456′)’ at line 1命令为:set password for
Depending on your role and skill level, this book will serve as a companion to the other Wrox books in the Microsoft SQL Server Beginning and Professional series.. This book will help you to learn: ...
Many SQL texts attempt to serve as an encyclopedic reference on SQL syntax — an approach that is often counterproductive, because that information is readily available in online references published ...