但是总报错:
/home/search/a.txt
a.sh: line 8: sleep: command not found
首先想到是不是找不到sleep命令
测试:
[search@stserver205 ~]$ sleep --help
Usage: sleep NUMBER[SUFFIX]...
or: sleep OPTION
Pause for NUMBER seconds. SUFFIX may be `s' for seconds (the default),
`m' for minutes, `h' for hours or `d' for days. Unlike most implementations
that require NUMBER be an integer, here NUMBER may be an arbitrary floating
point number.
--help display this help and exit
--version output version information and exit
drop table if exists `book`.`t_pdf`;
CREATE TABLE `book`.`t_pdf` (
`id` int NOT NULL auto_increment COMMENT '书唯一ID,自增ID',
`name` varchar(100) NOT NULL COMMENT '书名',
`key` varchar(100) NOT NULL COMMENT '书代号',
`status` tinyint(1) default 0 COMMENT 'pdf书的状态,默认0(解包完),1为处理完',
PRIMARY KEY (`id`)
)ENGINE=MyISAM AUTO_INCREMENT=1 comment = "pdf书的基本信息";
当插入时
insert into t_pdf (name,key,status) value ('a','b',0);
报错:
ERROR 1064 (42000): 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 'key,
tatus) value ('a','b',0)' at line 1