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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:03:57+00:00 2026-05-12T17:03:57+00:00

I have a table people (name, address, phone), my table have 2000+ rows. I

  • 0

I have a table people (name, address, phone), my table have 2000+ rows. I want to delete 1000 rows. How’s about the query?

  • 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-12T17:03:58+00:00Added an answer on May 12, 2026 at 5:03 pm

    I assume you want to delete “first 1000 rows” given the unsorted order of the result of “select” query with no sorting arguments and no criteria, in which case you are doing something wrong.

    But, as an academic exercise, here is how you’d do it. All rows in an SQLite have rowid field, which you can use to find where those 1000 rows end.

    sqlite> create table t(s string);
    sqlite> insert into t values('a1');
    sqlite> insert into t values('a2');
    sqlite> insert into t values('a3');
    sqlite> insert into t values('a4');
    sqlite> select * from t;
    a1
    a2
    a3
    a4
    sqlite> delete from t where rowid < (select rowid from t limit 2,1);
    sqlite> select * from t;
    a3
    a4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL table that keeps details about people, for example: Name Address
I have a table that returns the following TABLE People Name id Paco 18
I have a table named People in the following format: Date | Name .
I have a table people Name Id Age Sex Country Ankit ankitgautam24 17 M
Here's a pseudo-table: Table: people name : varchar is_married : varchar I have a
So I have a table people which is like this Id Name 1 John
I have a SQLite query like this: SELECT Books.title, People.name FROM Books, People WHERE
I have two tables table: people id name goods_owned 1 john 1,4,3 2 Mike
I have the following database table (People): +--------+--------+--------+ | Name | Age | Time
I have the following db table (People): +--------+--------+--------+--------+ | Name |Building| Nr | Time

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.