Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
1.25/5 (3 votes)
See more:
Hello

How to select multiple tables from sql.
thanks
Posted
Comments
[no name] 12-Mar-13 17:44pm    
Maybe you can elaborate your question?
Daqdibi 12-Mar-13 17:48pm    
Ok.I need to fill Dataset from 5 sql datatables.But I need to do programmatically.Not one by one.
Because the names of tables are differents.Each time I must select from different tables dynamically.
[no name] 12-Mar-13 17:56pm    
Please update your question with the code that you have tried and describe the problem that you are having.
Sergey Alexandrovich Kryukov 12-Mar-13 17:45pm    
Do you mean "from multiple tables"?
—SA
Daqdibi 12-Mar-13 17:51pm    
Yes, From Multiple tables.Every time they are changing.

1 solution

This is a pretty basic thing. However, it depends on what exactly do you want to achieve. To start, please see, for example:
http://www.techonthenet.com/sql/select.php[^],
more advanced cases: http://www.techonthenet.com/sql/joins.php[^].

If this is not enough for your purposes, you will need to delve much deeper in SQL :-).

—SA
 
Share this answer
 
Comments
Espen Harlinn 12-Mar-13 17:54pm    
Good links :-D
Sergey Alexandrovich Kryukov 12-Mar-13 18:01pm    
Thank you, Espen.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900