⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 用vc++6.0开发多表联接的数据库应用程序.htm

📁 用VC++6.0开发多表联接的数据库应用程序
💻 HTM
📖 第 1 页 / 共 4 页
字号:
                                title="工具条,工具提示,状态条,菜单,按钮,组合框,对话框,单文档界面,多文档界面,视图分割,窗口管理
等界面类编程" 
                                href="http://www.vczx.com/article/list.php?type=2" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>界面编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A 
                                title=多线程多任务,消息系统,磁盘,文件操作,钩子,驱动程序开发,Shell编程,注册表等 
                                href="http://www.vczx.com/article/list.php?type=3" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>系统编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=网络与通信编程 
                                href="http://www.vczx.com/article/list.php?type=4" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>网络编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=模板组件类编程 
                                href="http://www.vczx.com/article/list.php?type=5" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>模板组件编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=文件打印编程 
                                href="http://www.vczx.com/article/list.php?type=6" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>打印编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=数据库编程 
                                href="http://www.vczx.com/article/list.php?type=7" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>数据库编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=图形图像多媒体类编程 
                                href="http://www.vczx.com/article/list.php?type=8" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>多媒体编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=游戏类编程 
                                href="http://www.vczx.com/article/list.php?type=12" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>游戏编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=dll编程 
                                href="http://www.vczx.com/article/list.php?type=13" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>dll 编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=各种控件 
                                href="http://www.vczx.com/article/list.php?type=11" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>控件类编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=各种算法 
                                href="http://www.vczx.com/article/list.php?type=14" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>经典算法</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=C/C++编程 
                                href="http://www.vczx.com/article/list.php?type=9" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>C/C++编程</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=XML/.NET技术 
                                href="http://www.vczx.com/article/list.php?type=10" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>XML/.NET</FONT></A></LI></TD></TR>
                                <TR>
                                <TD vAlign=center align=left 
                                background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                                colSpan=10 height=1></TD></TR>
                                <TR onmouseover="this.bgColor='#C5C5C5'" 
                                onmouseout="this.bgColor='#FFFFFF'">
                                <TD vAlign=center align=left height=20>
                                <LI type=square>&nbsp;<A title=其它编程 
                                href="http://www.vczx.com/article/list.php?type=15" 
                                target=_blank><FONT face=Verdana 
                                color=#000000>其它编程</FONT></A></LI></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
                        <TABLE id=AutoNumber20 style="BORDER-COLLAPSE: collapse" 
                        borderColor=#111111 cellSpacing=0 cellPadding=0 
                        width="99%" align=center border=0>
                          <TBODY>
                          <TR>
                            <TD width="99%"></TD></TR></TBODY></TABLE>
                        <TABLE id=AutoNumber20 style="BORDER-COLLAPSE: collapse" 
                        borderColor=#111111 cellSpacing=0 cellPadding=0 
                        width="99%" align=center border=0>
                          <TBODY>
                          <TR>
                            <TD 
                            background=用VC++6.0开发多表联接的数据库应用程序.files/bg_dot.gif 
                            colSpan=10 
                    height=1></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
          <TD vAlign=top align=left width="84%" height=312>
            <TABLE cellSpacing=0 cellPadding=0 width="99%" align=center 
border=0>
              <TBODY>
              <TR>
                <TD align=left>当前位置: <A class=b href="http://www.vczx.com/" 
                  target=_self>首页</A> &gt;&gt; <A class=b 
                  href="http://www.vczx.com/article/list.php" 
                  target=_blank>技术文章</A> &gt;&gt; 数据库编程 </TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
            border=0>
              <TBODY>
              <TR>
                <TD align=left width="2%" bgColor=#efefef>&nbsp;</TD>
                <TD align=left width="83%" 
                  bgColor=#efefef><BR>文章标题:<B>用VC++6.0开发多表联接的数据库应用程序</B><BR>原 作 
                  者:软件世界<BR>原 出 处:软件世界<BR>发 布 
                  者:loose_went<BR>发布类型:转载<BR>发布日期:2003-12-30<BR>今日浏览:9<BR>总 浏 
                  览:3718<BR></TD>
                <TD vAlign=bottom align=left width="15%" 
              bgColor=#efefef></TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=0 cellPadding=0 width="96%" align=center 
border=0>
              <TBODY>
              <TR>
                <TD vAlign=top align=left bgColor=#ffffff><BR>&nbsp; 
                  本文介绍了用Visual C++6.0开发数据库应用程序时,使用MFC ODBC类的编程方法,详细说明了在MFC 
                  ODBC的派生类中设置SQL语句参数的方法,实现了二个表的关联。 <BR><BR>1.引言 
                  <BR>开发Windows应用程序时,在很多情况下可能要和数据库连接。数据库类型多种多样,功能结构也各不相同。从比较简单的DBASE、FoxPro等到复杂的SYBASE、Qracle等大型数据库系统。VC++6.0都提供了一些接口。程序员可利用这些接口方便地开发数据库应用程序。MFC 
                  ODBC类就是其中的一个,在快速生成简单一致的接口应用程序方面这些类非常有用。用户不必了解ODBC 
                  API和SQL的具体细节,利用ODBC类即可完成对数据库的大部分操作。然而,VC++ Appwizard 
                  生成的数据库应用程序,只是基于单个数据表的数据库应用程序。而实际应用中,往往要求数据库应用程序能关联二个或多个数据表。VC++的好多书籍对此只是简单的介绍。本文透彻地解决这一问题。 
                  <BR>2.ODBC与MFC <BR>2.1 ODBC 
                  <BR>ODBC(开放数据库互连)应用程序可通过ODBCAPI访问不同数据源中的数据,每个不同的数据源类型由一个ODBC驱动程序支持,这个驱动程序完成了ODBC 
                  API程序的核心,并与具体的数据库通信。ODBC环境提供了驱动程序管理器(Driver 
                  Manager),管理那些与不同数据源连接的驱动程序在ODBC32.DLL中执行。应用程序只需要与驱动程序管理器连接,驱动程序管理器就会根据应用程序提供的数据源名,选择正确的驱动程序来访问数据源。 
                  <BR>要使用ODBC来开发数据库应用程序,必须使用在控制面板处的ODBC数据源管理器,来建立、配制数据源。应本例应用程序需要,按以下步骤建立所需的数据源。 
                  <BR>1. 双击控制面板处的32位的ODBC程序,选择对话框中的User DSN(用户数据源名)选项卡。 <BR>2. 
                  单击Add按钮,然后选择一个数据源:Microsoft Visual FoxPro 
                  Driver。单击“完成”,进入下一步设置。 <BR>3. 在Data Source 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -