SQL
Wednesday, May 24, 2017
How to get first character of a string in SQL?
LEFT(colName, 1)
will also do this, also. It's equivalent to
SUBSTRING(colName, 1, 1)
.
I like
LEFT
, since I find it a bit cleaner, but really, there's no difference either way.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment