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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.