Skip to content

error while inserting value in int datatype column #9

Answered by kanmaytacker
akhil-lakka asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @akhil-lakka.

The problem here is you are trying to save a 10 digit value in a column of an int datatype.
int has a maximum value of 2,14,74,83,647. It is likely your phone number was larger than this value.
Instead of numeric, try using one of the string datatypes.

1264 generally shows when you have the strict mode enabled. If you disable it, your input would get truncated and not thrown an error.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kanmaytacker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants