I got a table EMPLOYEE1 and i’m trying to insert values into it
INSERT INTO EMPLOYEE1 values(00001, 00004566)
But it inserts the values as 1 and 4566 truncating zero’s why does this happen. can some one help me out
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is happening because the data type of this column is numeric. You should make these columns varchar to be able to insert numbers without trancating zeros. Something like: