Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Delete All Rows a Table
How To Delete All Rows a Table? - Oracle DBA FAQ - Understanding SQL DML Statements
✍: FYIcenter.com
If you want to delete all rows from a table, you have two options:
The TRUNCATE statement is more efficient the DELETE statement. The tutorial exercise shows you a good example of TRUNCATE statement:
SELECT COUNT(*) FROM fyi_links;
COUNT(*)
----------
3
TRUNCATE TABLE fyi_links;
Table truncated.
SELECT COUNT(*) FROM fyi_links;
COUNT(*)
----------
0
2007-04-21, 5361👍, 0💬
Popular Posts:
.NET INTERVIEW QUESTIONS - How to prevent my .NET DLL to be decompiled? By design .NET embeds rich M...
How can you implement MVC pattern in ASP.NET? The main purpose using MVC pattern is to decouple the ...
How can I search for data in a linked list? Unfortunately, the only way to search a linked list is w...
When does the compiler not implicitly generate the address of the first element of an array? Wheneve...
What are the two fundamental objects in ADO.NET ? Datareader and Dataset are the two fundamental obj...