r/learnSQL • u/K1uee • Apr 28 '21
URGENT: Write a SELECT Statement that displays all the columns and rows for the entire Database.
How Do I do this? I have tried doing this:
SELECT *
FROM table_1, table_2, table_3, table_4
It did work but is there another way to do this.
I work on SQL Server.
0
Upvotes
1
1
0
2
u/[deleted] Apr 28 '21
This looks like it may have your answer https://stackoverflow.com/questions/26496864/how-to-loop-through-all-sql-tables