How to store more than 255 char in MySQL database?

Prior to MySQL 5.0.3, a VARCHAR could only store up to 255 characters. To store up to 65535 (64KB) characters, use a TEXT column. To store up to 16777216 (16MB ) characters, use a MEDIUMTEXT column. To store up to 4294967296 (4GB) characters, use a LONGTEXT column. See the storage requirements section of the manual … Read more

How do I convert a number to a numeric, comma-separated formatted string?

The reason you aren’t finding easy examples for how to do this in T-SQL is that it is generally considered bad practice to implement formatting logic in SQL code. RDBMS’s simply are not designed for presentation. While it is possible to do some limited formatting, it is almost always better to let the application or … Read more

Remove numbers from string sql server

1st option – You can nest REPLACE() functions up to 32 levels deep. It runs fast. REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (REPLACE (@str, ‘0’, ”), ‘1’, ”), ‘2’, ”), ‘3’, ”), ‘4’, ”), ‘5’, ”), ‘6’, ”), ‘7’, ”), ‘8’, ”), ‘9’, ”) 2nd option — do the reverse of – … Read more

What is wrong with a transitive dependency?

I’ll explain by an example: ——————————————————————- | Course | Field | Instructor | Instructor Phone | ——————————————————————- | English | Languages | John Doe | 0123456789 | | French | Languages | John Doe | 0123456789 | | Drawing | Art | Alan Smith | 9856321158 | | PHP | Programming | Camella Ford | … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)