SQL 데이터베이스에서 칠레산 RUT 확인 저는 이 웹사이트에서 이 코드를 발견했고 SQL SERVER에서 잘 작동하고 있습니다. CREATE FUNCTION [dbo].[CalculaDigitoRut] ( @rut int ) RETURNS char(1) AS BEGIN DECLARE @digito int DECLARE @contador int DECLARE @multiplo int DECLARE @acumulador int DECLARE @ret char set @contador = 2 set @acumulador = 0 while (@rut 0) begin set @multiplo = (@Rut % 10) * @contador set @acumulador = @acumulador + @multiplo..