MySQL Forums
Forum List  »  PHP

Re: Paasing Table name to Query from another Table in stored procedure
Posted by: Barry Galbraith
Date: January 27, 2013 06:10PM

>I have 3 companies and each company has different table.

That's your problem, right there.

You need 1 table for ALL companies, and the company id is used as a key into other tables that contain company data.

All the data of a particular type should be in one table.
This is Relational Database, not a spreadsheet.

If you want use Relational Database techniques, then you need for your data to be stored in relational database tables.

Good luck,
Barry.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.