Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

sql delete all tables starts with

SELECT 'IF OBJECT_ID(''' +TABLE_NAME + ''') IS NOT NULL BEGIN DROP TABLE [' + TABLE_NAME + '] END;' 
FROM INFORMATION_SCHEMA.TABLES 
WHERE TABLE_NAME LIKE '[prefix]%'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #delete #tables #starts
ADD COMMENT
Topic
Name
5+1 =