- 1、本文档共49页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Data Definition Using MySQL tMyn Internet Application Development tMyn, Mikkeli University of Applied Sciences Data Definition Using MySQL Many features are covered using ISO SQL standard. All the examples are done using MySQL. SQL identifiers are used to identify objects in the database, such as table names and columns. The characters that can be used in a user-defined SQL identifier must appear in a character set. The ISO standard provides a default character set, which consists of uppercase letters A…Z, the lowercase letters a…z, the digits 0…9, and the underscore (_) character. The following restrictions are imposed on an identifier: An identifier must start with a letter An identifier cannot contain spaces Character data consists of a sequence of characters from an implementation-defined character set. The format for specifying a character data type is: CHARACTER [VARYING][length] CHARACTER can be abbreviated to CHAR and CHARACTER VARYING to VARCHAR A character string may be defined as having a fixed or varying length. If the string is defined to be a fixed length and we enter a string with fewer characters than this length, the string is padded with blanks on the right to make up the required size. If the string is defined to be of varying length and we enter a string with fewer characters than this length, only those characters entered are stored, thereby using less space. The exact numeric data type is used to define numbers with an exact representation. The number consists of digits, an optional decimal point, and an optional sign. An exact numeric data type consists of a precision and scale. The precision gives the total number of significant decimal digits, that is, the total number of digits, including decimal places but excluding the point itself. The scale gives the total number of decimal places. There are several ways of specifying an exact numeric data type, for example: NUMERIC [precision[, scale]] DECIMAL [precision[, scale]] INTEGER IN
您可能关注的文档
- Site Templates and Site Definitions - Home Minnesota SharePoint 网站模板和站点定义-家居明尼苏达SharePoint.ppt
- 【预算管理精品】CH2预算编制.ppt
- CSE5334 Data Mining - cse services数据挖掘cse5334 CSE服务.ppt
- 目标管理与日常管理[打造高绩效管理目标与团队].ppt
- Extrasolar Planet StudiesThe Italian Contribution太阳系外行星研究意大利的贡献.ppt
- 2011年高考政治总复习课件:第一部分第六单元第3课时.ppt
- 陕西省西安市2011年中考化学3.25课件.ppt
- 鲁教版九年级化学下册《3.2 物质组成的表示1》.ppt
- 嵌入式系统-公选3.ppt
- 2010中考语文专项--说明文阅读专题课件【科目考试辅导资料】.ppt
文档评论(0)