- 1、本文档共23页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
SQL PPT 讲稿1
* DBS201: Introduction to Structured Query Language (SQL) Lecture 9 * Agenda The basic commands and functions of SQL How to use SQL to query a database to extract useful information (The SELECT statement) * Introduction to SQL SQL: Structured Query Language Designed specifically for communicating with databases SQL functions fit into three broad categories: Data definition language (DDL) Data manipulation language (DML) Transaction Control Language (TCL) * Introduction to SQL (continued) Data definition language SQL includes commands to create Database objects such as tables Commands to define access rights to those database objects Data manipulation language Includes commands to insert, update, delete, and retrieve data within the database tables objects Transaction control language Includes commands to ensure the integrity of the database. * Introduction to SQL (continued) SQL is relatively easy to learn Basic command set has a vocabulary of less than 100 words Sample vocabulary: CREATE COLLECTION CREATE TABLE CREATE VIEW * Introduction to SQL (continued) Sample vocabulary (continued): DROP COLLECTION DROP TABLE DROP VIEW ALTER INSERT SELECT DELETE * Introduction to SQL (continued) American National Standards Institute (ANSI) prescribes a standard SQL Several SQL dialects exist Oracle, MySQL, Access etc * Data Manipulation Commands SELECT attributes also called fields FROM table(s) WHERE condition(s) ORDERBY attribute(s) * Sample Table: PART PARTNUMBER PARTDESC ONHAND CLASS WAREHOUSE PRICE AX12 Iron 104 HW 3 23.95 AZ52 Dartboard 20 SG 2 12.95 BA74 Basketball 40 SG 1 29.95 BH22 Cornpopper 95 HW 3 24.95 BT04 Gas Grill 11 AP 2 149.99 BZ66 Washer 52 AP 3 399.99 CA14 Griddle 78 HW 3 39.99 CB03 Bike 44 SG 1 299.99 CX11 Blender 112 HW 3 22.95 CZ81 Treadmill 68 SG 2 349.99 * Listing Table Rows SELECT Used to list contents of table Syntax SELECT Field1, Field 2,… FROM tablename WHERE Condition 1 AND/OR Condition 2
您可能关注的文档
- plsql编程入门.doc
- B82462G4683M;B82462G4104M;B82462G4103M;B82462G4682M;B82462G4153M;中文规格书,Datasheet资料.pdf
- PLSQL速成手册—史上最全必威体育精装版.docx
- B9062发信息时如何切换手写输入.pdf
- B9388如何将音乐播放器中的歌曲设定为手机铃声.pdf
- BCM62B,215;中文规格书,Datasheet资料.pdf
- PostgreSQL常用函数.pdf
- BIOS常见问题及应用技巧.doc
- Q.BQB 302-2009 冷成型用热连轧钢板及钢带(SPHD).pdf
- Protocol 5.2.3 (20 January 2012) Chinese 4 皮革行业环境审计 汉语版.pdf
- 北师大版小学数学三年级上册《寄书》教学设计.docx
- 统编版(部编版)语文二年级上册《雪孩子》教学设计.docx
- 统编版(部编版)语文二年级上册《八角楼上》教学设计.docx
- 北师大版小学数学三年级上册《长方形周长》教学设计.docx
- 北师大版小学数学三年级上册《丰收了》教学设计.docx
- 统编版(部编版)语文二年级上册《夜宿山寺》教学设计.docx
- 统编版(部编版)语文二年级上册《风娃娃》教学设计.docx
- 统编版(部编版)语文二年级上册《朱德的扁担》教学设计.docx
- 统编版(部编版)语文二年级上册《难忘的泼水节》教学设计.docx
- 统编版(部编版)语文二年级上册《纸船和风筝》教学设计.docx
文档评论(0)