KI-Kunst-Kirsten-Kloeckner/KiKunstDatenbank/dpo/StoredProcedures/spBildInfo_Insert.sql

19 lines
498 B
MySQL
Raw Normal View History

2023-10-10 16:21:00 +02:00
CREATE PROCEDURE [dbo].[spBildInfo_Insert]
@Id INT,
2023-10-14 14:33:35 +02:00
@Datum DATETIME2,
@Dateiname NVARCHAR(256),
@ImageModel NVARCHAR(32),
@WunschId INT,
@Prompt NVARCHAR(MAX)
2023-10-10 16:21:00 +02:00
AS
BEGIN
2023-10-14 14:33:35 +02:00
INSERT INTO [dbo].[BildInfo] (Datum, Dateiname, ImageModel, WunschId, Prompt)
VALUES (@Datum,
@Dateiname,
2023-10-10 16:21:00 +02:00
@ImageModel,
2023-10-14 14:33:35 +02:00
@WunschId,
@Prompt);
SELECT Id FROM [dbo].[BildInfo] WHERE Id = CAST(SCOPE_IDENTITY() AS INT);
END