Answers for "clear all data from database sql"

SQL
1

sQL query to get all table records count from a database

DECLARE @TableRowCounts TABLE ([TableName] VARCHAR(128), [RowCount] INT) ;
INSERT INTO @TableRowCounts ([TableName], [RowCount])
EXEC sp_MSforeachtable 'SELECT ''?'' [TableName], COUNT(*) [RowCount] FROM ?' ;
SELECT [TableName], [RowCount]
FROM @TableRowCounts
ORDER BY [TableName]
GO
Posted by: Guest on April-25-2020
3

delete all content in table mysql

TRUNCATE tablename
Posted by: Guest on March-21-2020

Code answers related to "clear all data from database sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language