SQL PPT 讲稿1.ppt

  1. 1、本文档共23页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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 PART NUMBER PART DESC ON HAND 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

文档评论(0)

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

教师资格证持证人

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

领域认证该用户于2024年04月12日上传了教师资格证

1亿VIP精品文档

相关文档