sybase基础知识(国外英文资料).doc

  1. 1、本文档共25页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
sybase基础知识(国外英文资料)

sybase基础知识(国外英文资料) The general usage of Select is described below by an example. Example 1: select all columns, and the syntax is select * from table_list Select * from publishers Example 2: select the specified column, and the syntax is Select column_name [, column_name]... The from table_name Select pub_id, pub_name from publishers Example 3: rename the column in the query result, the syntax is The select column_heading = column_name The from table_name Select Publisher = pub_name, pub_id The from publishers Example 4: the computation value in the select list can be calculated for the numeric data in the select list, and the arithmetic operator is listed below. Symbolic operation + add - reduction / in addition to * take % modulus For select title_id, total_sales, total_sales * 2 from the title Example 5: use distinct to eliminate duplicate query results Optional keywords eliminate duplicate rows in the results of the select statement. If you do not specify a distinct, the default value is all, and you will retrieve all the row data that contains the duplicate row. Select distinct au_id from titleauthor Example 6: select the line -- where statement The exact specification of which lines to retrieve in the select statement is generally formatted as: Select select_list from table_list where search_conditions The search criteria (or limitations) in the where clause include: The comparison operator (=, , ,! = = Where advance * 2 total_sales * price Scope (between and not between) Where total_sales between 5000 and 10,000 The list (in and not in) Where state in ( CA , in, MD) Match characters (like and not like) Where phone like 0535% Unknown values (is null and is not null) Such as: the where advance is null (and, or) Where advance 5000 or total_sales between 500 and 1000 Example 7: query the result with the collection function summary The collection function USES the data of a particular column to calculate the summary value. The set function is the result Sum is t

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档