Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql get first n characters of string

#get first 10 chars of string
SELECT SUBSTRING(subject, 1, 10) FROM tbl
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #characters #string
ADD COMMENT
Topic
Name
1+6 =