Ask a Question related to ASP.NET General, Design and Development.
-
Ron #1
Selecting Certain Number of Characters from Table -- Simple SQL Question
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 Guest
-
Dreamweaver recordset, selecting table
In Dreamweaver 8, when I go to set up a recordset, in the recordset dialog box, the "table" dropdown box indicates a path to the table in the... -
SELECTing the 'middle' row in a table (maybe with php?)
A table contains records of Ice Cream flavors. There is a primary id field (INT) and a varchar for flavor. I need to get the row in the very... -
selecting ordered groups out of a table
Rainer Gauweiler wrote: with recent_orders as ( select customer, invoice-nr, date, row_number() over (partition by customer, order by date... -
Simple Number Formating Question
Use a field of type Number, and set the Format property of the field (lower pane in table design) to: 00 Are you sure you want to do this? 03 is... -
Simple Regex question (~[^newline characters])
<? // Test example: echo '<pre>'; $aInput = ' abtgh kdghg 9867 jkuhkh ^ { ooijj 438764 - 56_ 67 '; $aInput = ereg_replace('', ',' ,... -
Steve C. Orr, MCSD #2
Re: Selecting Certain Number of Characters from Table -- Simple SQL Question
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:
[url]http://www.experts-exchange.com/Developer/Databases/Microsoft_SQL_Server/Q_20639372.html[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Ron" <ron@razorvision.net> wrote in message
news:bdq9om$7nh@library2.airnews.net...my> 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> database. What would the SQL command to do this look like?
>
> Thanks,
>
> Ron
>
>
Steve C. Orr, MCSD Guest
-
Ron #3
Re: Selecting Certain Number of Characters from Table -- Simple SQL Question
Thanks for your help,
Ron
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:OjeyQA1PDHA.3768@tk2msftngp13.phx.gbl...[url]http://www.experts-exchange.com/Developer/Databases/Microsoft_SQL_Server/Q_20639372.html[/url]> 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:
>>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "Ron" <ron@razorvision.net> wrote in message
> news:bdq9om$7nh@library2.airnews.net...> my> > 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>> > database. What would the SQL command to do this look like?
> >
> > Thanks,
> >
> > Ron
> >
> >
>
Ron Guest



Reply With Quote

