Database insert error: “string or binary data would be truncated”

前端 未结 3 918
夕颜
夕颜 2021-01-11 11:23

When I log in, I am storing my username in the session. My requirement is that I want to store my username in my database. Here I am storing it in username1. Wh

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-11 11:47

    check the length of qry_details table and see if its smaller than the string you send to the db?

    basically the exception says you are trying to something bigger than the column length.

提交回复
热议问题