当我尝试创建此数据库并从表中获取时:
CREATE DATABASE milestone3;
USE milestone3
source team21db.sql
我收到错误:
ERROR 1264(22003):列'电话'超出范围值在第1行
我通过vim创建了下表,并将其命名为team21db.sql
CREATE TABLE IF NOT EXISTS `OIT Storage` (
`Id` int(1) NOT NULL auto_increment,
`Name` varchar(40) NOT NULL,
`Hard Drive` varchar(40) NOT NULL,
`Phone` varchar(10) NOT NULL,
`Picked up?` varchar(2) NOT NULL,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
INSERT INTO `OIT Storage` (`ID`, `Name`, `Hard Drive`, `Phone`, `Picked up?`) VALUES
(1, 'John',' IDE', '7203456789',' NO'),
(2, 'Mason', 'SAS', '3035551234', 'YES'),
(3, 'Jake', 'SCSI', '7196570123','NO'),
(4, 'Matt', 'SCSI', '5671239090', 'NO'),
(5, 'Helen', 'SATA','7195471423', 'YES')
为什么我收到此错误?