0

Continue from this question ,

I have a table called customer_report id[int(11)],customer_id[int(5)] in Mysql while insertng values into the table the customer_id entered wrongly as 2147483647.

My query as below :

insert into customer_report (id,customer_id) 
values('','99999999999')

Whats wrong with this ?

Anyone help please .

Thank in advance.

2
  • 3
    You have to increase the length of customer_id. Commented Apr 3, 2013 at 10:45
  • 2
    change column int to bigint Commented Apr 3, 2013 at 10:46

1 Answer 1

1

please change the customer_id structure to bigint or do int(11)

Sign up to request clarification or add additional context in comments.

3 Comments

I changed to bigint its solved but whats the problem why its not truncate the value as varchar when int(5) or int(11)
there is some range for integer
help.scibit.com/mascon/masconMySQL_Field_Types.html your issue resolved? then accept the answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.