Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to print longest name in sql

select top 1 Name, len(Name) as city_length from tblPerson order by city_length desc
 
PREVIOUS NEXT
Tagged: #print #longest #sql
ADD COMMENT
Topic
Name
7+1 =