Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHemen Nabi
15,192 PointsWhich one of these functions is more widely used, `substr()` or `mid()`?
Which one of these functions is more widely used, substr()
or mid()
?
SELECT MID(column_name,start,length) AS some_name FROM table_name;
1 Answer
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 PointsCheck out nice post here:
Looks like MID
and SUBSTR
are synonyms with small differences
http://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_substr
http://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_mid