SQL语句error
来源:互联网 发布:ubuntu iso安装教程 编辑:程序博客网 时间:2024/06/05 00:46
1、以下语句有3个问题:
create table if not exists `wim_image`(`id` int(10) unsigned not null auto_increment comment 'ID',`name` varchar(50) not null comment 'WIM镜像名称',`mac` varchar(17) default null comment 'MAC地址',`add_time` datetime not null comment '添加时间',`group_id` int(10) unsigned not null comment '分组ID',`wim_path` varchar(256) not null comment 'WIM镜像路径',`available` bit(1) default '0' comment '0不可用1可用',primary key (`id`),unique key (`name`),) ENGINE=MyISAM DEFAULT CHARSET= utf8 AUTO_INCREMENT=1问题一:unique key(`name`) 后不能有分号问题二:`available`字段的default不是字符'0',而是0应改为:default 0</span>问题三:最后没有加分号。在mysql控制台中,每执行一条sql语句,都需要加分号。
0 0
- SQL语句error
- Error or chance:错误SQL语句导致dbgrid数据只读
- 使用事务处理多条SQL语句时,@@error在捣鬼
- on error语句,when语句
- SQL语句
- sql语句
- SQL语句
- SQL语句
- SQL语句
- SQL语句
- SQL语句
- SQL语句
- SQL 语句
- sql语句
- sql语句
- Sql语句
- SQL语句
- SQL语句
- Android的第一天
- PKI入门级介绍
- EBS 接口开发
- IIS6部署web service完整过程
- ambari1.7安装
- SQL语句error
- __builtin__、__builtins__和builtins的那些事
- FileOpenDialogEx扩展
- 微信公众平台开发,微信JS-SDK对接invalid signature报错解决
- Intel® Integrated Performance Primitives(IPP)的配置方法及函数库初探(Image Processing)
- 通过一个翻译程序复习下 抓数据、正则表达式等
- sublime中Zen Coding插件快捷编码
- ZigZag Conversion
- Junit spring 多线程测试