Results 1 to 2 of 2

Thread: select some part of data frm db?

  1. #1
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default select some part of data frm db?

    Hi frnds....

    i have a column in database like CONTENT ..it contains 20 lines of of data....but i need to select only 5 lines of data to a single variable......


    plz tell me how can i do?

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    "multiple lines" within a single record would be very difficult to achieve... you would first need to get the record, then split the field by some delimiter (\n or \r) if it's an actual new line.. then join the first "5" parts...

    if you wanted to get "5" records where your "CONTENT" field equals/similar to something that is possible.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •