mfc odbc连接数据库.pdfVIP

  • 35
  • 0
  • 约3.82千字
  • 约 24页
  • 2017-04-27 发布于浙江
  • 举报
mfc odbc连接数据库

本案例通过 VS2010 环境下的 MFC ODBC 使用者连接 SQL Server 数据库 因为是通过 ODBC 数据源连接的,在此我认为关于 SQL Server 的版本是无关紧要的。 数据库准备: --先要手动创建一个数据库,名字叫studentdb --创建好了数据库studentdb就可以执行下面的sql语句了 --这些语句执行完了以后,会在studentdb中建一个student表,然后插入四条数据 use studentdb; create table student( sno varchar(10), sname varchar(10) not null, sage int not null, pwd varchar(10) not null); insert into student(sno,sname,sage,pwd) values(0001,jack,20,7777); insert into student(sno,sname,sage,pwd) values(0102,tom,20,8888); insert into student(sno,sname,sage,pwd) values(3472,cat,

文档评论(0)

1亿VIP精品文档

相关文档