 |
Avoiding IF.. ELSE by using WHERE EXISTS - SQL Server Planet
I made a example if you want to see: ALTER PROCEDURE [dbo].[USP_getCliente] @id int AS BEGIN SET NOCOUNT ON; — programa começa aqui –verifica se já existe tabela, –se não, cria a tabela e insere o registo, if not exists (SELECT * from sysobjects where nam
sqlserverplanet.com |
 |