Created
October 11, 2023 13:31
-
-
Save dieissonmartins/f31b392900ed610737f8ef942916c702 to your computer and use it in GitHub Desktop.
Verifica se view de uma tabela já existe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TABLE_NAME AS ViewName | |
FROM information_schema.VIEWS | |
WHERE | |
TABLE_SCHEMA = 'desenvolvimento' | |
AND VIEW_DEFINITION LIKE '%tabela_aqui%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment