Jmsilva Posted March 3, 2020 Report Share Posted March 3, 2020 Boa tarde ! Alguém já passou por isso ? EX: tabbanco -> Campos: codbanco char(5), numbanco numeric(3), nome varchar(20) //033 - 33 - Santander Comando: Select * From tabbanco a where a.codbanco = 33; // não da erro no sql studio e nem no sistema Certo seria : Select * From tabbanco a where a.codbanco = '033' //tipos iguais Observe que esta comparando campos com tipo de diferente. Existe alguma configuração no SqlServer para inibir este problema ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.