What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 17176 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > SQL Server Interview Questions > Which of the following SQL statements is ...

Which of the following SQL statements is correct?

Interview question and answer by: CGN007 | Posted on: 6/15/2012 | Category: SQL Server Interview questions | Views: 1257 | | Points: 40

Select from following answers:
  1. TRUNCATE TABLE student
  2. TRUNCATE * FROM TABLE student
  3. TRUNCATE studentTABLE

Show Correct Answer

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Gemamgall | Posted on: 27 Jun 2012 10:36:58 AM | Points: 10 | Alert Moderator 

TRUNCATE TABLE student is correct statement , as syntax of TRUNCATE is

TRUNCATE TALBE tablename

Posted by: Krishnamsai | Posted on: 20 May 2013 02:44:42 PM | Points: 10 | Alert Moderator 


TRUNCATE Table command is used to delete complete data from the existing table.
TRUNCATE TABLE table_name
TRUNCATE TABLE Customers;
customers table is truncated, do the SELECT statement to see the result set. is EMPTY or not.



Posted by: Krishnamsai | Posted on: 20 May 2013 02:50:16 PM | Points: 10 | Alert Moderator 


TRUNCATE Table command is used to delete complete data from the existing table.
TRUNCATE TABLE table_name
TRUNCATE TABLE Customers;
customers table is truncated, do the SELECT statement to see the result set. is EMPTY or not.



>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from CGN007

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 3:47:49 PM