Jump to content

Archived

This topic is now archived and is closed to further replies.

traffic

SELECT part of a field

Recommended Posts

Hello...

 

I have a field in my database that is a 'text' field - post_text...

 

I want to be able to select just the first (500) characters in the field - but, can't seem to find any documentation for this...

 

Any help would be appreciated...

 

 

...

Share this post


Link to post
Share on other sites

[!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] LEFT(post_text,500) AS excerpt FROM... [!--sql2--][/div][!--sql3--]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.