Groups | Blog | Home
all groups > asp.net > june 2003 >

asp.net : Selecting Certain Number of Characters from Table -- Simple SQL Question



Steve C. Orr, MCSD
6/30/2003 2:41:20 PM
This is not the best forum for a SQL question, but I believe I have your
answer anyway.
Use the Left() SQL function. You could also use the SubString method.
Here's more info:
http://www.experts-exchange.com/Developer/Databases/Microsoft_SQL_Server/Q_20639372.html

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net


[quoted text, click to view]

Ron
6/30/2003 4:23:58 PM
How can I select a certain number of characters from a string, without
selecting the whole string?

For example, I want the first 50 characters of a 500 character string in my
database. What would the SQL command to do this look like?

Thanks,

Ron

Ron
6/30/2003 5:02:38 PM
Thanks for your help,

Ron
[quoted text, click to view]

AddThis Social Bookmark Button