Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.49-community MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database woohoo;
Query OK, 1 row affected (0.00 sec)
mysql> use woohoo;
Database changed
mysql> create table yes(sir varchar(10));
Query OK, 0 rows affected (0.14 sec)
mysql> insert into yes values ('bla bla bla bla');
ERROR 1406 (22001): Data too long for column 'sir' at row 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment