I am using this sql statement to delete the total record from a table

sameer kumar
DELETE FROM Orders WHERE OrderID BETWEEN 1 AND 1000;

but if the table record is unknown to me than how can i delete all record from the table without deleting table.

Amani Ben Azzouz
TRUNCATE Orders;

This is all what you need to delete all the content of your selected table

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

What am I missing from this DELETE statement

Delete A Record From Dynamic table using javascript

delete record from table using codeigniter

I am trying to delete a record in the database using mysql javascript API

Why am I loosing table data from adding additional join statement in SQL Server?

Am i safe from SQL injection if i know for sure that a certain value i am using in a dynamic statement is an integer?

I am trying to delete data from table by using forign key in laravel

JDBC: How do I delete a specific record from table using PreparedStatement?

How can I delete a record from a custom grid / table using the REST API?

Can I insert multiple values to a MS Access record using an SQL statement from VB 6.0?

Extract table name from insert, update or delete statement using T-SQL

when i am using this sql query its duplicates the value,that is there is only one record in the table and its showing 8 records

I want to compare a record with the substring of record from another table in SQL

How I Can delete all record from child table in room?

How can I delete record from table in Oracle?

SELECT * from SQL table using prepared statement

Delete a record from table using ajax in laravel 5

Using AND in a DELETE FROM statement

php - Can't delete input in table using sql statement

Trying to use a Macro/SQL statement to delete from a table (Ms Access)

Get the total Count and Sum of total Amount from down line record using SQL Server CTE

Cannot delete record from mysql with this statement in php

MySQL query to Retrieve Main record from main table and Sub records from another table in a single SQL statement

How to get total appointment durations from this table using sql

How do i create a view table to show current number of record of the same employee and the total count? SQL ORACLE

i want to delete the record from data base using php on which record i click

Do I have to make sure my record only match with one row when using JOIN with DELETE statement?

How do I add Update statement to selected rows I am about to insert into a table with MS SQL query?

How to delete record from table using Angular http.delete with PHP backend?