Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Databases Programming Interviews:BtrieveClipperData ModelingData StructuresDatabase AdministrationDatabase Administrator (DBA)Database AnalystDatabase DeveloperDB DevelopmentEDI/Data Integration ExpertFirebirdHierarchicalIBM DB2InformixJava DatabaseMariaDBMicrosoft Access DeveloperMongoDBMS SQL ServerMySQL ProgrammingNetworkNoSQLObject RelationalPostgrePostgreSQLProgressRDBMSRelationalSQLSQL AdministratorSQL and PL/SQLSQL Notification ServicesSQL server 2008SSRSStored ProcedureSybaseTeradata
Copyright © 2018. All Rights Reserved
MariaDB Interview Question:
Do you know what is the use of TRUNCATE statement? How is it different from DELETE statement?
Submitted by: MuhammadTRUNCATE TABLE statement is used to delete a table permanently. It deletes all the records from the table.
Syntax:
TRUNCATE [TABLE] [database_name.]table_name;
Difference between DELETE and TRUNCATE statement:
☛ DELETE statement is used to remove one or more columns from a table as well as whole table. On the other hand, TRUNCATE TABLE statement is used to delete the whole table permanently.
☛ TRUNCATE TABLE statement is same as DELETE statement without a WHERE clause.
Submitted by: Muhammad
Syntax:
TRUNCATE [TABLE] [database_name.]table_name;
Difference between DELETE and TRUNCATE statement:
☛ DELETE statement is used to remove one or more columns from a table as well as whole table. On the other hand, TRUNCATE TABLE statement is used to delete the whole table permanently.
☛ TRUNCATE TABLE statement is same as DELETE statement without a WHERE clause.
Submitted by: Muhammad
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.