What MySQL is silent about
Test:
| |
Output:
| |
As you can see, MySQL silently cut the value if doesn’t fit to a column type.
For example, PostgreSQL gives the following error in such case:
| |
Test for PostgreSQL:
| |
Test:
| |
Output:
| |
As you can see, MySQL silently cut the value if doesn’t fit to a column type.
For example, PostgreSQL gives the following error in such case:
| |
Test for PostgreSQL:
| |