RAUL EMMANUEL PADILLA GAYTAN
@raulemmanuelpadillagaytan
Apodaca, Mexico
@raulemmanuelpadillagaytan
Apodaca, Mexico
RAUL EMMANUEL PADILLA GAYTAN@raulemmanuelpadillagaytan
Exelente maestro Will, en el log en la ficha mensajes, sale correcto el print: GESTION ACTUAL: 2025. gracias maestro!
RAUL EMMANUEL PADILLA GAYTAN@raulemmanuelpadillagaytan
al typearlo tuve errores de dedo xd, pero aprendí al hacerlo, maestro will tengo la duda en la parte final del ELSE, especificamente en donde está el select ins.doctor_name, ins.doctor_lastname, ins.doctor_date_of_birth, ins.doctor_age from inserted as ins; porqué se vuelve a escribir SELECT despues del insert into doctors ???? otra pregunta es sobre el raiserror y el throw, ambas funcionan igual? según perplexity consulté: <span style="background-color: oklch(0.217 0.002 197.042); color: oklch(0.93 0.003 106.451); font-family: fkGroteskNeue, "fkGroteskNeue Fallback", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px;">en T-SQL está considerada obsoleta desde SQL Server 2012. Aunque todavía se puede utilizar, se recomienda usar la instrucción THROW. Gracias por su atención profe
RAUL EMMANUEL PADILLA GAYTAN@raulemmanuelpadillagaytan
CREATE FUNCTION [dbo].suma( @valor1 int, @valor2 int ) RETURNS int AS BEGIN DECLARE @respuesta int =0;
SET [@respuesta](https://ed.team/u/respuesta) [@=@valor1](https://ed.team/u/=@valor1) + [@valor2](https://ed.team/u/valor2);
RETURN [@respuesta](https://ed.team/u/respuesta);
END;
SELECT [dbo].suma(90,10);
RAUL EMMANUEL PADILLA GAYTAN@raulemmanuelpadillagaytan
pregunta: ¿El esquema [dbo] en el query, se refiere a una tabla o al diagrama? tengo duda con eso
RAUL EMMANUEL PADILLA GAYTAN@raulemmanuelpadillagaytan
Me encantó el tema, reforzar estos conocimientos básicos, me está sirviendo mucho. Maestro Will, tengo una duda: usar el UPDATE para el ejemplo del primarey key, ára no eliminar la tabla con el DROP table ¿Es posible?