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 3401628
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:02:20+00:00 2026-05-18T05:02:20+00:00

suppose i need to print the 3rd, 5th, 9th, 20th, 34th and so on…

  • 0

suppose i need to print the 3rd, 5th, 9th, 20th, 34th and so on…

  • 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-05-18T05:02:21+00:00Added an answer on May 18, 2026 at 5:02 am

    Rows, by position, have no real meaning in a database (at least I can’t think of any). Why do you care its actual row location?

    How do you know that 3rd record is the record you want to delete? Match an ID, match a phrase in another field, do something to uniquely identify the record as the record you want to access. Doing this by it row location will not do this for you.

    If you have five records that all match exactly and you only want to delete one then add the LIMIT 1 to the end of your DELETE statement. If they are exact the row doesn’t matter. The 3rd or 5th or 7th wouldn’t matter since they match your query exactly. So delete one of your matching query.

    Now it sounds as if you are showing users a table of data in some order, which may or may not be duplicated, and allowing them the option to delete a row. You are taking the actual row location instead of storing the Primary Key with each displayed row. Then when a user selects a delete, you would just use the attached Primary Key to the row and delete that row.

    You say “the primary key with several other fields are the same” – That can’t be true as you can’t have to identical primary keys. I’m now thinking you have some flaw in your database design. Post a table schema and sample of exactly what you are doing. No point continuing if you backed yourself into a corner with the design (which is sounds like)

    (I can’t comment on other posts so updates have to be edited in this post)

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

Sidebar

Related Questions

Suppose I have op(abc)asdfasdf and I need sed to print abc between the brackets.
Suppose I have 10 points. I know the distance between each point. I need
Suppose you need to run a program on the world’s fastest supercomputer which will
Suppose I need to break out of three or four nested for loops at
Suppose we need to check three boolean conditions to perform a select query. Let
Suppose you have two seperate ASP.NET Web Application projects that both need to use
Suppose you have a collection of a few hundred in-memory objects and you need
I need to construct some rather simple SQL, I suppose, but as it's a
Suppose I have virtual function foo() in class B, and I need slightly different
Suppose you are calling a function, where there's clearly a need to break down

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.