Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to find original row count in MySQL?

How to find original row count in MySQL?

Scheduled Pinned Locked Moved Database
questiondatabasemysqltutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Willington
    wrote on last edited by
    #1

    The following query returning the following result: SELECT count(*) FROM `table1`; -------------------- Resilt 2000 But the following Query returning different result SELECT table_name, table_rows AS rows FROM information_schema.tables WHERE table_schema = 'bakrol14' and table_name = `table1` Order by table_name; -------------------- Result 2143 What is the reason?

    S 1 Reply Last reply
    0
    • W Willington

      The following query returning the following result: SELECT count(*) FROM `table1`; -------------------- Resilt 2000 But the following Query returning different result SELECT table_name, table_rows AS rows FROM information_schema.tables WHERE table_schema = 'bakrol14' and table_name = `table1` Order by table_name; -------------------- Result 2143 What is the reason?

      S Offline
      S Offline
      scottgp
      wrote on last edited by
      #2

      I'm not really familiar with MySQL, but Googling for table_rows shows some possible issues. See the first two here:http://www.google.com/search?q=table_rows&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups