Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7893191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:04:08+00:00 2026-06-03T07:04:08+00:00

I retrieve quite a lot of data from SQLite database. When retrieving I map

  • 0

I retrieve quite a lot of data from SQLite database. When retrieving I map it to different views in my application. There is a text field in my table from which I don’t want to get the full text, just first n chars. So if my query for example is:

Select description from articles where id='29';

Then how do I get the substring from description? thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:04:09+00:00Added an answer on June 3, 2026 at 7:04 am

    Use the substr function.

    From the list of core functions:

    substr(X,Y,Z) substr(X,Y) substring(X,Y,Z) substring(X,Y)

    The substr(X,Y,Z) function returns a substring of input string X that
    begins with the Y-th character and which is Z characters long. If Z is
    omitted then substr(X,Y) returns all characters through the end of the
    string X beginning with the Y-th. The left-most character of X is
    number 1. If Y is negative then the first character of the substring
    is found by counting from the right rather than the left. If Z is
    negative then the abs(Z) characters preceding the Y-th character are
    returned. If X is a string then characters indices refer to actual
    UTF-8 characters. If X is a BLOB then the indices refer to bytes.

    substring() is an alias for substr() beginning with SQLite version
    3.34.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to retrieve information from my database quite a lot throughout my app,
I need to retrieve quite a bit of data from our oracle DB and
I have a CoreData-based application that retrieves data about past events from an SQLite
I'm stuck with retrieving data from a MySQL-database in an efficient way. I have
I retrieve data from db like that: select * from MOVIE_COMMENT where USER_ID =
I retrieve embed code videos from my database. However, in db they are 650
I need to retrieve random rows from SQL Server database. I am looking for
I am trying to retrieve a blob from a postgres database using the jdbc
I retrieve XML data in Flex via HttpService. I have the resultFormat property on
To retrieve k random numbers from an array of undetermined size we use a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.