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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:05:27+00:00 2026-06-09T21:05:27+00:00

I have a very large table called paypal_ipn_orders . In this table I have

  • 0

I have a very large table called paypal_ipn_orders. In this table I have 2 important bits of information a row called item_name and a row called sort_num. I want to use certain parameters to pull out records from paypal_ipn_orders and put them into a temporary table called temp_table. I know how to select the records as follows

SELECT `item_name`, `sort_num` 
FROM `paypal_ipn_orders`
WHERE `packing_slip_printed` = 0
AND LOWER(`payment_status`) = `completed`
AND `address_name` <> ''

That query selects all the records I want to move to the temporary database I just don’t know how to do that.

  • 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-09T21:05:29+00:00Added an answer on June 9, 2026 at 9:05 pm

    Use MySQL’s Insert Into Select I added generic data types to the columns in the temp table, you’ll want to find out what the actual data types are from your table and make them the same.

    CREATE TEMPORARY TABLE temp_table (
        item_name varchar(50), 
        sort_num int
    );
    
    INSERT INTO temp_table (item_name, sort_num)
    SELECT `item_name`, `sort_num` 
    FROM `paypal_ipn_orders`
    WHERE `packing_slip_printed` = 0
    AND LOWER(`payment_status`) = `completed`
    AND `address_name` <> ''
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large table with an indexed datetime field. I want to
We have a very large (10million+) row table stored in MySql using the InnoDB
I have a very large table (15 million rows, this is an audit table).
I have a very large table of over 9 million rows and in my
I have a very large UIView approx 3000x3000 in size. In this large view
I have a very large table in my database and I am starting to
I also have a very large table in SQL Server (2008 R2 Developer Edition)
Let's say I have a very large MySQL table with a timestamp field. So
I have a very large table (374870 rows) and when I run the following
I have a very large table in MySQL. I'm using a CHAR(32) field which

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.