mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +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
|