- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
                        查看更多
                        
                    
                数据库原理课件第三章
                    Chapter 3: SQL Chapter 3:  SQL Data Definition Basic Query Structure Set Operations Aggregate Functions Null Values Nested Subqueries Complex Queries  Views Modification of the Database Joined Relations**  3.1 History IBM Sequel language developed as part of System R project at the IBM San Jose Research Laboratory Renamed Structured Query Language (SQL) ANSI and ISO standard SQL: SQL-86 SQL-89 SQL-92  SQL:1999 (language name became Y2K compliant!) SQL:2003 Commercial systems offer most, if not all, SQL-92 features, plus varying feature sets from later standards and special proprietary features.   Not all examples here may work on your particular system. 3.2 Data Definition Language The schema for each relation. The domain of values associated with each attribute. Integrity constraints The set of indices to be maintained for each relations. Security and authorization information for each relation. The physical storage structure of each relation on disk. 1.Domain Types in SQL char(n).  Fixed length character string, with user-specified length n. varchar(n).  Variable length character strings, with user-specified maximum length n.  Nchar(n), nVarchar(n) (for unicode ,2byte code,1-4000 chars) Text. Variable length character strings,1 to 2GB.=varchar(max) int.  Integer (4B,a finite subset of the integers that is machine-dependent). smallint.  Small integer (2B,a subset of the integer domain type). Bigint.  Big integer  (8B),tinyint(1B),bit(多个位占1B) numeric(p,d).  Fixed point number, with user-specified precision of p digits, with d digits to the right of decimal point. Decimal(p,d). 1.Domain Types in SQL(cnt) real, double precision.  Floating point and double-precision floating point numbers, with machine-dependent precision. float(n).  Floating point number, with user-specified precision of at least n digits. Datatime  8B:yyyy.mm.dd h:m:s,smalldatatime 4B Money  8B Xml      (2GB)(不同表单可以存在xml类型的属性字段中) Binary(n)         1-8000B Image              2GB Timestamp     8B Sql_v
                您可能关注的文档
- 江苏省泰州市智堡中学2014届九年级数学上学期期中试题(含答案).doc
- 急性心力衰竭的护.ppt
- 急性心力衰竭诊断治疗指南与进展解读.ppt
- 江苏省泰州市永安初级中学2013-2014学年八年级数学上册2.5实数教学案苏科版.doc
- 江苏省泰州市永安初级中学2013-2014学年八年级数学上册3.2中心对称与中心对称图形教学案苏科版.doc
- 江苏省泰州市永安初级中学2013-2014学年八年级数学上册4.2立方根导学案(一)苏科版.doc
- 江苏省泰州市永安初级中学七年级语文上册第一单元古诗词三首导学案.doc
- 江苏省泰州市泰州二附中2012-2013学年七年级语文新生入学学业测试试题.doc
- 急性心肌梗死指南解读(北大三院).ppt
- 急性心肌梗死心电图的新观点安毅.ppt
 原创力文档
原创力文档 
                        

文档评论(0)