mirror of
https://github.com/bitwarden/server.git
synced 2024-11-23 12:25:16 +01:00
17 lines
290 B
MySQL
17 lines
290 B
MySQL
|
CREATE OR ALTER PROCEDURE [dbo].[Transaction_ReadByUserId]
|
||
|
@UserId UNIQUEIDENTIFIER,
|
||
|
@Limit INT
|
||
|
AS
|
||
|
BEGIN
|
||
|
SET NOCOUNT ON
|
||
|
|
||
|
SELECT
|
||
|
TOP (@Limit) *
|
||
|
FROM
|
||
|
[dbo].[TransactionView]
|
||
|
WHERE
|
||
|
[UserId] = @UserId
|
||
|
ORDER BY
|
||
|
[CreationDate] DESC
|
||
|
END
|