Home >> MySql >> LENGTH() aggregate function in MySql

LENGTH() aggregate function in MySql

LENGTH() return length of word.

Syntax

LENGTH(column_name)

Example

SELECT city,LENGTH('city') AS citylength FROM employee

Output

Delhi        5

Lucknow   7

Post Your Comment

Next Questions
TRIM() aggregate function
LTRIM() aggregate function
RTRIM() aggregate function
What is transaction
What is normalization and types of normalization
What is First Normal Form(1NF)
What is Second Normal Form(2NF)
What is Third Normal Form(3NF)
What is Boyce Codd Normal Form(BCNF)
What is Fourth Normal Form(4NF)
What is Fifth Normal Form(5NF)
What is Index and why use indexing
What is clustered index
What is non clustered index
What is primary key index
What is unique key index
What is normal index
What is full text index
What are advantage and disadvantage of indexing
Create database
Drop database
Select database
Create table
Drop table
Truncate table

Copyright ©2022 coderraj.com. All Rights Reserved.