Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to truncate all table in mysql workbench

SELECT
    Concat('TRUNCATE TABLE ', TABLE_NAME)
FROM
    INFORMATION_SCHEMA.TABLES
WHERE
    table_schema = 'db_name';
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql add column with default value 
Sql :: is not numeric sql 
Sql :: how to drop all tables in postgresql 
Sql :: mysql row_number() example 
Sql :: creating a table in sql 
Sql :: how to find lowest in sql 
Sql :: DB: in eloquent using sql 
Sql :: mysql where value is null 
Sql :: enable sql server full text indexing 
Sql :: create a view in sqlite 
Sql :: oracle create table if not exists 
Sql :: current date sql 
Sql :: create_engine sqlalchemy with parsed url sql server 
Sql :: if else in plsql 
Sql :: mysql export and import 
Sql :: sql first 
Sql :: how to make a select in sql 
Sql :: describe in sqlite3 
Sql :: install mysql 5.7 
Sql :: split string from comma in sql 
Sql :: sql table 
Sql :: laravel general error 2006 mysql server has gone away 
Sql :: sql drop procedure 
Sql :: sql query to select records entered in last 24 hours 
Sql :: index column size too large. the maximum column size is 767 bytes. mysql 
Sql :: sql running total 
Sql :: sqlalchemy update row 
Sql :: primary key multiple colums 
Sql :: mysql get nth highest 
Sql :: copy data from one table to another mysql 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =