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. Web Development
  3. ASP.NET
  4. selecting all tables in my db

selecting all tables in my db

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netmysqlhelp
1 Posts 1 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.
  • T Offline
    T Offline
    tmoney101
    wrote on last edited by
    #1

    Hey, First I couldnt find a direct database forum, but i am using asp.net, so here it goes. I am creating a search function, and I want to search all tables in my mysql db. Now I have researched and found that this can be done simply by seperating all the tables in the FROM clause with commas, or using a UNION statement, but what I want to know is can you just select all of the tables in the db at once? All my tables are identicle in structure, and at first i would just like to search the one field from each table. I have tried using something like "SELECT * FROM *" but i get errors. The main reason I want to do this is because everytime I add a table in the db I dont want to have to edit the code. If anyone can help or even point me in direction of some good articles it would be appreciated. Thanks for your time.

    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