onedumbcoder Posted July 27, 2009 Share Posted July 27, 2009 what happens if u insert a value greater then size expected in the database? for example lets say name is a varchar with a size set to 20 what happens if u insert a name with 21+ characters? is this dangerous or can is cause problems? Quote Link to comment https://forums.phpfreaks.com/topic/167674-insert-value-greater-then-size-expected/ Share on other sites More sharing options...
gevans Posted July 27, 2009 Share Posted July 27, 2009 Off the top of my head I believe it truncate your insert. I know that's what happens when going directly via phpmyadmin. Quote Link to comment https://forums.phpfreaks.com/topic/167674-insert-value-greater-then-size-expected/#findComment-884286 Share on other sites More sharing options...
fenway Posted August 3, 2009 Share Posted August 3, 2009 Depends if you're using strict mode or not. Quote Link to comment https://forums.phpfreaks.com/topic/167674-insert-value-greater-then-size-expected/#findComment-889935 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.