What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table
Answer Posted / g.nageswara rao
in first query 1=1 always true,then it retrives all columns
in a table.
so,there is no difference in between these two
Is This Answer Correct ? | 39 Yes | 3 No |
Post New Answer View All Answers
What is Sqlpaging in SqlServer 2005 ?
How to rename an existing table with the "sp_rename" stored procedure in ms sql server?
What do you mean by sql server agent?
What is #table in sql server?
How to create an index on an existing table in ms sql server?
What is function of master database?
How data can be copied from one table to another table?
How can we solve concurrency problems?
What are the purposes of floor and sign functions?
What is change tracking in sql server?
What are the commands used in DCL?
What is exporting utility?
What is in place upgrade in sql server?
What is the purpose of optimization?
how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration