473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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
2 5975
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: gene.ellis | last post by:
Good morning. I am racking my brains over what seems like should be a simple question. I have a string that contains text and html. Basically, I would like to grab the HTML tags from the string and...
7
by: NS Develop | last post by:
What's wrong with the following: void SomeClass::someMethod(void) { A *ptrA = NULL; ptrA = &A(); .... }
3
by: Brad | last post by:
I have another hopefully simple question. I am so used to writing VB .Net windows apps that there are some things in ASP .Net that just does not easily cross over. I know how to pass variables to...
3
by: King Albert | last post by:
Why does the 'insertrow' work in this situation: <html> <script type="text/javascript"> function addRow(tableID) { var tableRef = document.getElementById(tableID); var newRow =...
12
by: weeodett | last post by:
Is there a way to automate the deletion of the oldest rows in a transaction log file when the file reaches a certain number of rows? Currently, we are simply deleting the oldest rows manually every...
3
by: G. Miller | last post by:
Hey, I've got what seems like a simple question, but I've been wrestling around with it for way too long. I've got two fields in a table named and . I don't want the user to be able to enter a...
3
by: roondog | last post by:
I have just started learning php and mysql. I am trying to make a news page for a site where you can enter news in a form and it appears on the news page. That is done, fairly simple. I've also...
3
by: sandhu236 | last post by:
Hi all, Can anyone please help me..to take backup automatically from the frontend application (Java swing) after certain number of records REgards, SAndhya
3
maxx233
by: maxx233 | last post by:
Hello, I'm developing a simple program to control a video switcher we have via RS232. All the backend control stuff is figured out just fine, the interface is what's giving me problems! I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.