mysql - Error Code: 1264. Out of range value for column -
i'm trying code work , first line i'm inserting error. i've changed value of phone number's varchar, error still remains.
this code:
create schema if not exists `mydb` default character set utf8 ; use `mydb` ; create table if not exists `mydb`.`customer` ( `customer_id` int not null, `customer_f_name` varchar(45) not null, `customer_l_name` varchar(45) not null, `customer_address` varchar(45) not null, `customer_dob` date not null, `customer_h_phone` varchar(20) not null, `customer_w_phone` varchar(20) not null, `customer_type` varchar(45) not null, `customer_sponsor_id` int null, primary key (`customer_id`), index `fk_customer_customer1_idx` (`customer_sponsor_id` asc), constraint `fk_customer_customer1` foreign key (`customer_sponsor_id`) references `mydb`.`customer` (`customer_id`) on delete no action on update no action) engine = innodb; insert `customer` (`customer_id`, `customer_f_name`, `customer_l_name`, `customer_address`, `customer_dob`, `customer_h_phone`, `customer_w_phone`, `customer_type`, `customer_sponsor_id`) values (1, 'nicole', 'gilbert', '8295 golden leaf alley', '1992-03-28', '5744813109', '1646648129', 'student', null);
and when insert first line of data error get:
insert `customer` (`customer_id`, `customer_f_name`, `customer_l_name`, `customer_address`, `customer_dob`, `customer_h_phone`, `customer_w_phone`, `customer_type`, `customer_sponsor_id`) values (1, 'nicole', 'gilbert', '8295 golden leaf alley', '1992-03-28', '5744813109', '1646648129', 'student', null) error code: 1264. out of range value column 'customer_h_phone' @ row 1
thank you!
Comments
Post a Comment