Azure移动服务,自定义API,更新输出并随后选择返回空结果
技术问答
179 人阅读
|
0 人回复
|
2023-09-12
|
在明确更新银行的同时,以下是result.length始终为0。
; E& M, B# o$ ?, Aexports.get=function(request,response){ var mssql=request.service.mssql; var sql="declare @tableId table(id nvarchar(255)); update mytable set myfield=1 output inserted.id into @tableId where id=(select top 1 id from mytable where myfield is null order by date); select id from @tableId;"; mssql.query(sql,{ success:function(results){ if(results.lentgh==1) response.send(statusCodes.OK,results[0]); else response.send(statusCodes.OK,null); }
) ~6 e9 k' c8 ]6 g9 \+ r0 t 解决方案: |
|
|
|
|
|