Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 冲浪宝典 > 网络资源 > select语句总结(informix)
【标  题】:select语句总结(informix)
【关键字】:select,informix
【来  源】:http://www.cublog.cn/u/20228/showart.php?id=123162

select语句总结(informix)

Your Ad Here
----select语句总结----

--以column1排序进行查询,也可以以多个字段进行排序,如order by column1,column2,默认是升序,降序用desc
select * from table where column>1 order by column1
--把查询结果放到临时表temptable中
select column1 from table where colunm2<2 into temp temptable
--把字段column1放到变量var中
select colunm1 into var from table
--过滤出column2字段有两条以上的记录
select column2,count(*) from table
group by 1 having count(*)>1
--排除重复的行
select distinct column1 from table
select unique column1 from table
--时间函数
select day(time_stamp) from table
返回日期中的天
select day(current) from table
 
 
----与时间有关----
 
day(current)表示当天(只列出天数)
year(current)显示年份
month(current)显示月份
date(current)显示当天(年月日)
weekday(current)显示星期几
--此处的current可用today代替,如year(today)
select current year to day  from table
current year to month 显示年月
current year to day 显示年月日
current year to hour显示年月日小时
current year to minute显示年月日小时分
current year to second 显示年月日小时分秒
限制时间,显示年到秒
--extend(time_stamp,year to second)
限制时间,显示年到月
--extend(time_stamp,year to month)
informix 7.3.1的在AIX5.2下安装与镜像配置过程:【上一篇】
fastdb 容错支持:【下一篇】
【相关文章】
  • informix 7.3.1的在AIX5.2下安装与镜像配置过程
  • SELECT列表框提示
  • select语句总结
  • 备份informix数据库
  • T-SQL中的Select查询(续)
  • 密集型server/socket/多路复用/select
  • Mobile控件List与SelectionList控件数据绑定
  • VBScript 中 Select Case 的三个典型应用 By Stabx
  • 使用java nio的selector做一个数据查询主机
  • create a "select element"
  • 【随机文章】
  • AT&T Assembly Syntax
  • 苹果喊冤 MacBook被攻破是因第三方网卡
  • EJB的分类及其各自的功能及应用
  • 谈宽带市场的分类及特色
  • c#socket编程
  • 用于Linux的日志文件系统
  • 试用国内厂商ActionSoft的AWS平台感慨
  • WIN32编程必知:__stdcall,__cdecl,__fastcall,thiscall,naked call
  • 自定义条件分析
  • 坐标非整数时的像素化
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.