REST API:SELECT语句-如何为列指定别名 [英] REST api : SELECT statement - how to give alias name to column

查看:69
本文介绍了REST API:SELECT语句-如何为列指定别名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

am quite new to REST API.

以下是我使用REST API进行的选择查询

Below is my select query using REST API

http://dummyserver/_api/web/lists/getbytitle('LstEmp')/Items/?$select=EmpNo,Name,EmpNo

I want to put an alias name for the 2nd time written EmpNo column. As it is possible in normal SQL Select Statements

SELECT EmpNo,Name,EmpNo AS DummyName FROM Emp

Have been googling around for this. But didn't found any thing.

在此先感谢

推荐答案

无法在REST URL的

Adding an alias to the column names in the


选择部分的列名中添加别名.但是,如果您使用返回的数据来构建HTML表,则可以灵活地在其中命名您选择的列.
select section of the REST URL is not possible. However if you are using the returned data to build an HTML table, you have the flexibility to name the column of your choice there. 

此致

Priyan


这篇关于REST API:SELECT语句-如何为列指定别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆