数据库
文章平均质量分 79
foodvc
In fact , i study food science and engineer, but when i graduated from school, i find my interest in computer , so i decide to study computer as a beginner, those two years ,i devoted my time to computer , including C C# architecture and communication
展开
-
DataBase 数据库连接字符串
ADO.NET 连接数据库字符串(Oracle、SqlServer、Access、ODBC) ADO.NET连接到 SQL Server SQL Server .NET Framework 数据提供程序支持类似于 OLE DB (ADO) 连接字符串格式的连接字符串格式。using (SqlConnection connection = new SqlConnection(conne原创 2008-07-24 10:05:00 · 716 阅读 · 0 评论 -
如何获得数据库里所有表的名字
平时我们操作比较多的都是表里的数据,也许突然有一天会需要把所有表的名字都列出来看一看——比如,你的论坛是按每个版块一个表来管理的,这时候你要在首页列出各版块的名字。应该怎么办呢?肯定得用SELECT吧……但我们平时使用SELECT操作的数据都是表里的数据,表的名字并不是表的数据,这可怎么办呢?你可能会想:“功能强大的SQL Server不会连这么简单的功能都实现不了吧?一定会把所有表的名字原创 2008-05-19 16:58:00 · 607 阅读 · 0 评论 -
C# 数据库编程
关于数据库编程,微软提供了一个统一的数据对象访问模型,在Visual Studio6.0中称为ADO,在.NET中则统一为ADO.NET,掌握ADO.NET就等于掌握了数据库编程的核心。 针对数据库编程始终是程序设计语言的一个重要方面的内容,也是一个难点。数据库编程的内容十分丰富,但最为基本编程的也就是那么几点,譬如:连接数据库、得到需要的数据和针对数据记录的浏览、删除、修改、插入等操作。其转载 2008-05-23 15:58:00 · 537 阅读 · 0 评论 -
用Visual C#访问DB2数据库
在Visual Studio.NET Beta 1版本中访问IBM DB2等非SQL Server数据库通常是使用ADO.NET的ODBC方法,而在Beta 2中则改用OLE DB方式存取数据库。 Beta1中连接字符串主要需声明数据库的ODBC的DNS名字,但Beta 2中的OLE DB连接的字符串就较复杂了,使用的类也不相同。由于DB2等数据库在大型机等应用中使用非常广泛,.NET自然会全转载 2008-05-23 16:13:00 · 1232 阅读 · 1 评论 -
用C#访问Access数据库
我编写这个程序的动机是当我希望用c sharp访问MSAccess数据库的时候我没有办法获得任何信息和参考材料.网上所能获得的所有材料都是偏重于SQL的,所以我们将分两步来编写这个应用程序,第一我们将展示如何连接到MSAccess数据库然后看看它有多复杂.最后,我们就这样完成了这个程序. 闲言少序,让我们开始正题.连接到数据库的过程与我们早先的ADO连接过程相比已经发生了较大的变化.下面原创 2008-05-23 16:03:00 · 965 阅读 · 0 评论 -
Visual C#中的数据绑定
我们知道在由于Visual C#自身没有类库,和其他的.Net开发语言一样,Visual C#调用的类库是.Net框架中的一个共有的类库--.Net FrameWork SDK。ADO.NET是.Net FrameWork SDK提供给.Net开发语言进行数据库开发的一个系列类库的集合。在ADO.NET中虽然提供了大量的用于数据库连接、数据处理的类库,但却没有提供类似DbText组件、DbL转载 2008-05-23 16:38:00 · 650 阅读 · 0 评论 -
SQL语句常用的
Student(S#,Sname,Sage,Ssex) 学生表 Course(C#,Cname,T#) 课程表 SC(S#,C#,score) 成绩表 Teacher(T#,Tname) 教师表 问题: 1、查询“001”课程比“002”课程成绩高的所有学生的学号; select a.S# from (select s#,score from SC where C#=001) a,(sel原创 2008-10-17 09:22:00 · 866 阅读 · 0 评论