使用Sequelize

时间:2017-11-04 20:49:00

标签: node.js express orm sequelize.js

我在数据库中有这种存储过程,如何用sequelize实现它?

ALTER PROCEDURE [dbo].[Sarbazi]
    @name nvarchar(255),
    @famili nvarchar(255),
    @grade nvarchar(255)
AS 
BEGIN
    SELECT
        [dbo].[createProjects].[name], 
        [dbo].[createProjects].family,
        [dbo].[createProjects].grade
    FROM 
        [dbo].[createProjects]
    WHERE
        ([dbo].[createProjects].[name] = @name OR @name = '')
        AND ([dbo].[createProjects].family = @famili OR @famili = '')
        AND ([dbo].[createProjects].grade = @grade OR @grade = '')
END

我无法实现,是否可以编写它?

1 个答案:

答案 0 :(得分:0)

arn:aws:...