第11讲2--通讯机制.pdf

上传人:奉*** 文档编号:4059744 上传时间:2021-01-13 格式:PDF 页数:20 大小:378.25KB
返回 下载 相关 举报
第11讲2--通讯机制.pdf_第1页
第1页 / 共20页
第11讲2--通讯机制.pdf_第2页
第2页 / 共20页
点击查看更多>>
资源描述

《第11讲2--通讯机制.pdf》由会员分享,可在线阅读,更多相关《第11讲2--通讯机制.pdf(20页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、An Introduction to Database System Video 11-2? An Introduction to Database System ?SQL? ?SQL? ? PL DB ? ? ? ? An Introduction to Database System ?SQL? ? ?1?SQL? ?SQL? ?2?SQL? ?3?SQL? ? An Introduction to Database System ?SQL? PLer DBer ? ?/? ?SQLCA? An Introduction to Database System 1. SQL? ? SQLCA

2、? ? SQL? ? ? ? ? ? ?SQL? ? ?SQL? ? An Introduction to Database System 1. SQL?2? ?SQLCA? SQL Communication Area ?SQLCA? An Introduction to Database System 1. SQL?3? ?SQLCA? ?SQLCA ? ?EXEC SQL INCLUDE SQLCA? ?SQLCA ?SQLCA?SQL? ?SQLCODE ?SQLCODE?SUCCESS? SQL? ?SQL ? SQLCODE?SQL? ? An Introduction to Da

3、tabase System 2. ? ? ?SQL? ? ?SQL? ?Host Variable? An Introduction to Database System ? ? ? ?SQL? ? ?SQL? An Introduction to Database System ? ? ? ?Indicator Variable? ? ? ? An Introduction to Database System SELECT? ? ?8.3 ? ?givensno? ?givencno? EXEC SQL SELECT Sno,Cno,Grade INTO :Hsno,:Hcno,:Hgra

4、de:Gradeid /*?Gradeid*/ FROM SC WHERE Sno=:givensno AND Cno=:givencno? ?Gradeid 0?Hgrade? An Introduction to Database System ? ? ?8.5 ?SC ?stdno? ?couno? gradeid=-1? /*gradeid?*/ EXEC SQL INSERT INTO SC(Sno,Cno,Grade) VALUES(:stdno,:couno,:gr :gradeid)? /*:stdno?:couno?:gr?*/ ? An Introduction to Da

5、tabase System ? ? ?SQL? ? BEGIN DECLARE SECTION . . ? . END DECLARE SECTION An Introduction to Database System ? ?SQL? ? ?SQL? ? ?SQL? ?:? ? ? ? An Introduction to Database System ? ? ?SQL? ? ? ? ? ? An Introduction to Database System 3 ? ? ? ? ?SQL? ? ? ? ? ?SQL? ? An Introduction to Database Syste

6、m 3 ? ? ?DECLARE? EXEC SQL DECLARE CURSOR FOR ; ? ? ?SELECT? ?select? ? An Introduction to Database System 3. ? ? ? ? SQL? ? SQL?SQL? ? ? ? ? ?SQL? ? ? ?SQL? An Introduction to Database System 4. ? EXEC SQL BEGIN DECLARE SECTION; /*?*/ char deptname20; EXEC SQL END DECLARE SECTION; /*?*/ long SQLCOD

7、E; EXEC SQL INCLUDE SQLCA; /*?SQL?*/ int main(void) /*C?*/ printf(Please choose the department name(CS/MA/IS): ); scanf(%s,deptname); /*?deptname?*/ EXEC SQL CONNECT TO TESTlocalhost:54321 USER SYSTEM/MANAGER; /*?TEST*/ EXEC SQL DECLARE SX CURSOR FOR /*?SX*/ SELECT Sno,Sname,Ssex,Sage /*SX?*/ FROM Student WHERE SDept = :deptname; EXEC SQL OPEN SX; /*?SX?*/ An Introduction to Database System ? 1 ? 2 ? 3 SQL?

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 大学资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁