473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Delete_DML

31
In Oracle , SQL platform ,
is there any Delete (DML) statement with the following syntax ----
Delete from <Table_Name> All ;
If it exists can anybody tell me how it works and how it is different from
Delete from <Table_Name> ;

Also in Teradata , SQL platform ,
Are the same applicable ?
Dec 4 '06 #1
1 1314
pragatiswain
96 Expert
In Oracle , SQL platform ,
is there any Delete (DML) statement with the following syntax ----
Delete from <Table_Name> All ;
If it exists can anybody tell me how it works and how it is different from
Delete from <Table_Name> ;

Also in Teradata , SQL platform ,
Are the same applicable ?
In oracle the is no command like "Delete from <Table_Name> All ;"
I guess you want to flush the data in a table.
You can use the command "Truncate table <Table_Name> ;"
"Delete from <Table_Name> ;" can be rolled back but "Truncate table <Table_Name> ;" can not be rolled back. Once data is gone, it's gone.
Basically, a truncate statement resets the high water mark to its initial position. That's how it works.

Hope this helps.
Dec 5 '06 #2

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.