摘要: 数据库的外联和内联及自联inner join & outer join自联:自联数据的来源不是多个表,而是一个表中两个字段的关系自联中一个表被虚拟成2个表(两张表之间存在关系-》找出一张表的某行或多行)select worker.name||'work for'||manager.namefrom employee.worker,employee.managerwhere worker.m... 阅读全文
posted @ 2010-08-15 15:37 小09牛 阅读(623) 评论(0) 推荐(0) 编辑
摘要: .net中两种常用数据配置(待扩展)1.与access的连接provider=microsoft.jet.oledb4.0,datasource=c:\\northwind.mdb;datasource的标准形式为:mydrive:mypath\myfile.mdb;2.与sqlserver的连接设置sa账户及密码connectionString="Data Source=abc;Initial ... 阅读全文
posted @ 2010-08-15 15:35 小09牛 阅读(151) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace quanpaixu{    class Program {         static void Mai... 阅读全文
posted @ 2010-08-15 15:34 小09牛 阅读(481) 评论(0) 推荐(0) 编辑
摘要: //第一个是循环值,第二个是输出值,第三个是你要检索的字符串private void RandomSort1(int j,string s1,string test) {                  for (int i1 = j; i1 < test.Length; i1++... 阅读全文
posted @ 2010-08-15 15:33 小09牛 阅读(436) 评论(0) 推荐(0) 编辑