SQLServer As
来源:互联网 发布:天津市软件学院答辩 编辑:程序博客网 时间:2024/04/27 23:36
比如select max(autoid) as autoid from yc_module
select count(*) as count from yc_module
然后用rs.getString(count)或rs.getString(autoid)才能取到
elect count(*) from (select Classification from NewsInfo) as a
sql server中派生表是不能单独作为表名的 一定要给它个别名当做表名这里你的派生表就是 (select Classification from NewsInfo) 如果不加 as a就不能直接用在 from后面
AS可以省略不写
select id as 编号 from 表名首先单个字段中可以用到as,就是给id这个字段起个别名叫编号select a.id from 表名 as a其次表名中可以用到as,意思是把表起个别名叫做a,这个如果表名很长并且关联的时候,单独写一个字母比较方便些select sum(value) as 总量 from 表这个其实和第一个一样,也是把要取的东西用一个别名来代替
0 0
- SQLServer As
- SQLServer With As 用法
- SQLServer用函数都要用As
- SQLServer用函数都要用As
- 【SqlServer系列】AS的用法
- sqlserver不能直接create table as select ......
- sqlserver不能直接create table as select ......
- sqlserver不能直接create table as select ......
- SqlServer 分页 ROW_NUMBER() OVER(Order by * DESC ) AS RowNumber
- sqlserver的特殊写法 case when as与union all
- as
- as
- as
- as
- as
- as
- as
- as
- Android dumpsys 命令解析
- VMware下用vdiskmanager命令+gparted分区工具扩大Linux虚拟机硬盘容量
- Struts2.0中ActionInvocation使用
- linux高级编程的理解
- 关于ARM的22个常用概念
- SQLServer As
- CString string 的相互转化,宽字符,多字符的转换
- Codeforece#219(DIV2) C题
- Cookie的基础知识
- 20131214-第七天
- 在异常处理中处理析构函数
- ++i和i++效率谁高
- android scrollview 嵌套listview 或者listview嵌套listview 计算子view高度
- Fedora18设置终端快捷键 和 桌面快捷方式