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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:44:59+00:00 2026-06-16T01:44:59+00:00

Friends I have created a mysql table to get the page visits for my

  • 0

Friends I have created a mysql table to get the page visits for my website.
My table is like this

statistics_table(stat_id,visited_page,visit_count)

Where the visit_count is incrementing by one for every visit.This works perfect. But now i need to to save all statistics in a different table each an every day to my traffic monitoring purpose.

like follows

2012/12/15-->page1-->100 visits
2012/12/16-->page1-->180 visits
2012/12/17-->page1-->200 visits

because statistics_table incrementing its value every day,so i can get how many visits per day using

(2012/12/16-->page1-->visits)-(2012/12/15-->page1-->visits)//80 visits

At the moment i am using an another table with same schema+date and update it everyday using cron job.

Is there any way to make this work rather than my way? I mean easy/better way to do this.Thanks for any advice.

  • 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-16T01:45:01+00:00Added an answer on June 16, 2026 at 1:45 am

    You can use the following query statement to insert datas to another table,

    INSERT INTO Table_name(stat_id,visited_page,visit_count)
    SELECT stat_id,visited,visit_count_page FROM Exist_Tablename WHERE <condition>;
    
    DELETE FROM Exist_Tablename 
    WHERE <condition>;
    

    Like this you can try,

    This may helps you.

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

Sidebar

Related Questions

I have a table called 'friends', this contains the columns person1 and person2 .
Hello friends i have created two page one is index.html and second is about.html
Friends, i have created a UILabel with border (just like the image below). I
i have a table called users this what the table look like CREATE TABLE
I have a table successfully created in MySQL: CREATE TABLE IF NOT EXISTS MESSAGE
I have created a very simple app to invite friends. This is my code:
I have created an invite friends code, which is properly working if an FB
friends, i have created custom title bar using following titlebar.xml file with code <?xml
Hi stackoverflow friends, I have an instance that ,In symfony2 I created a security
I have this table CREATE TABLE [dbo].[friend_blocked_list]( [subdomain] [varchar](50) NOT NULL, [un] [nvarchar](50) NOT

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.