mysql - sql insert wrong value in BDD -
here request,
insert user(name,user_id,url,email,created,updated,phone,organisationid,role) values ('bastien frey', '2196898165', 'https://cubber.zendesk.com/api/v2/users/2196898165.json', 'bastien.frey@incityz.com', '2016-01-19t16:21:07z', '2016-01-19t16:21:07z', '', '30567951','end-user'),('mathilde zimmer', '2297486669', 'https://cubber.zendesk.com/api/v2/users/2297486669.json', 'mathilde.zimmer91290@gmail.com', '2016-01-26t12:04:20z', '2016-01-26t12:04:20z', '', '36094152','end-user')
but insert wrong user_id in table, think code or bdd problem ? in bdd have that:
you have defined user_id column signed integer , attempted insert value greater upper limit of data type (2147483647). mysql truncated value maximum allowed data type (you not have strict sql mode enabled, otherwise have received error). check out warnings show warnings
command.
change field's data type unsigned int or (unsigned) bigint.
Comments
Post a Comment