mirror of
https://github.com/bitwarden/server.git
synced 2024-12-05 14:23:30 +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
|