Differentiate CHAR_LENGTH and LENGTH?



Differentiate CHAR_LENGTH and LENGTH?..

Answer / Ashish Babu

In MySQL, `CHAR_LENGTH()` returns the length of a string without considering any trailing spaces. On the other hand, `LENGTH()` counts all characters, including leading and trailing spaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

How does triggers work in mysql?

1 Answers  


How to dump a table to a file with 'mysqldump'?

1 Answers  


How do I change directories in mysql?

1 Answers  


How do I automate a backup in mysql?

1 Answers  


Can mysql and mariadb coexist?

1 Answers  


how we connect the data base in any programme

2 Answers  


How do I view a mysql database?

1 Answers  


How do I run mysql?

1 Answers  


How to control the max size of a heap table?

1 Answers  


How to connect html form to mysql database using php?

1 Answers  


How do I select a database in mysql workbench?

1 Answers  


Can we store pdf files in mysql?

1 Answers  


Categories