By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,583 Members | 1,076 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,583 IT Pros & Developers. It's quick & easy.

Selecting Certain Number of Characters from Table -- Simple SQL Question

P: n/a
Ron
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/Deve..._20639372.html

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Ron" <ro*@razorvision.net> wrote in message
news:bd********@library2.airnews.net...
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

Nov 17 '05 #2

P: n/a
Ron
Thanks for your help,

Ron
"Steve C. Orr, MCSD" <St***@Orr.net> wrote in message
news:Oj**************@tk2msftngp13.phx.gbl...
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/Deve..._20639372.html
--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Ron" <ro*@razorvision.net> wrote in message
news:bd********@library2.airnews.net...
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


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.