Impact of Gen-AI on IT Jobs - Growth Mindset Show
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
21
Reply
When to user Truncate Delete in SQL?
Rathrola Prem Kumar
8y
698
1
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
To delete all data
Mukesh Kumar
8y
0
To delete all data
Mukesh Kumar
8y
0
To delete all data
Mukesh Kumar
8y
0
To delete all data
Mukesh Kumar
8y
0
To delete all data
Mukesh Kumar
8y
0
To delete all data
Mukesh Kumar
8y
0
To delete all data
Mukesh Kumar
8y
0
To delete all data
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
Truncate deals with MDF file Means permanent delete
Mukesh Kumar
8y
0
To delete data from magic table also
Mukesh Kumar
8y
0
Truncate delete with magic table Delete delete without magic table
Mukesh Kumar
8y
0
Truncate query delete data with magi table also
Mukesh Kumar
8y
0
to delete data with magic table from database we use truncate
Mukesh Kumar
8y
0
1.TRUNCATE is a DDL command, whereas DELETE is a DML command.2.We can’t execute a trigger in case of TRUNCATE whilst with DELETE, we can accomplish a trigger.3.TRUNCATE is quicker than DELETE, for the reason that when we use DELETE to delete the data, at that time it store the whole statistics in the rollback gap on or after where we can get the data back after removal. In case of TRUNCATE, it will not store data in rollback gap. rub it out. TRUNCATE do not recover the deleted data.4.We can use any condition in WHERE clause using DELETE but it is not possible with TRUNCATE.5.If a table is referenced by any foreign key constraints, then TRUNCATE won’t work
Rathrola Prem Kumar
8y
0
Message