Data truncated for column, but the data truncated is a empty C#/MySql -


I am trying to insert values ​​into a MySQL table via C #. My string is like CMD text to send MySQL to the last step:

  sistema1 (* some columns here *, Octitm, * here one more column *) in INSERT * (* value * The problem is set in column column, and the value that I am trying to input is empty. How can I fix this?  

Thank you!

Solution 1: If your column AktivesTeam Supports NULL when you insert the values ​​you can skip that column.

Try it: Skip the AktivesTeam Column name and value

  in sistema1 (COLUMN1, COLUMN2) value in INSERT (VALUE1, VALUE2);   

Solution 2: If your column does not support AktivesTeam then NULL Try it double value 0.0

try it:

  sistema1 (COLUMN1, AktivesTeam, COLUMN2 in INSERT) ) Value (VALUE1,0.0), VALUE2); To avoid  SQL injection attacks           < P>  Suggestions:  / div> 

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -