导航

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 35 下一页

2011年3月29日

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using ZedGraph;namespace zedGraphTest{ public partial class frmZedGraph : Form { public frmZedGraph() { InitializeComponent(); zedGraph1.Title 阅读全文

posted @ 2011-03-29 00:00 beeone 阅读(972) 评论(0) 推荐(0) 编辑

2011年3月22日

摘要: 非连接数据访问类是在客户应用程序中进行实例化的。在使用非连接类时必须使用DataTable对象。DataTable对象DataTable对象将表格化数据表示为内存中的一个包含行、列和约束条件的表。创建一个DataTable对象:DataTable 对象 = new DataTable(对象名);例:DataTable Student = new DataTable(“student”);上例就创建了一个对象名为Student的DataTable对象。注意:在vs2005中有时会出现这样的错误:““DataTable”是“命名空间”,但此处被当做“类型”来使用”。那是因为DataTable是命名 阅读全文

posted @ 2011-03-22 13:16 beeone 阅读(1138) 评论(0) 推荐(0) 编辑

2011年3月20日

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace hetaoTest{ public partial class Form1 : Form { static SqlConnection conn = null; public Form1() { Initia 阅读全文

posted @ 2011-03-20 23:10 beeone 阅读(927) 评论(0) 推荐(0) 编辑

摘要: try{ string NameStr=this.txtName.Text; string AgeStr =this.txtAge.Text; SqlConnection conn = new SqlConnection("Data Source=hetao;Initial Catalog=TestDB;Integrated Security=True"); conn.Open(); SqlCommand cmd=new SqlCommand("select count(*) as flag from T_UserName where name="+&q 阅读全文

posted @ 2011-03-20 19:08 beeone 阅读(1145) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;namespace NarcissusNumber{ class Program { public static void Main(string[] args) { int a; string s; do { Console.WriteLine("3----找出三位数所有的水仙花数!"); Console.WriteLine("4----找出四位数所有的水仙花数!"); Console.WriteLine("5--- 阅读全文

posted @ 2011-03-20 15:25 beeone 阅读(4267) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;namespace Consolezeng{ class Program { /*************输出九九乘法口诀***************/ static void Main(string[] args) { string str = " "; int i; int j; int sum; for (i = 1; i < 10; i++) { for (j = 1; j <=i; j++) { sum = i * j; C 阅读全文

posted @ 2011-03-20 15:23 beeone 阅读(555) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Text;namespace ConsoleShui{ class Program { /**********************输出菱形**********************/ static void Main(string[] args) { int i; int j; int k; for (i = 0; i <=10; i++) /*输出上面10行的*号*/ { for(j = 0; j <10 - i; j++) Console.Write(&q 阅读全文

posted @ 2011-03-20 15:18 beeone 阅读(4698) 评论(0) 推荐(0) 编辑

2011年3月11日

摘要: 窗体顶端private void button2_Click(object sender, EventArgs e)2 {3 if (lboxMenu.Items.Count > 0)4 {5 Append(lboxMenu, progressBar);// 附加数据库操作6 MessageBox.Show("提示:附加成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);7 }8 else9 MessageBox.Show("请选择要附加的数据库!", &q 阅读全文

posted @ 2011-03-11 12:55 beeone 阅读(521) 评论(0) 推荐(0) 编辑

摘要: select * into [B].[dbo].[bb] from [A].[dbo].[aa] 阅读全文

posted @ 2011-03-11 12:13 beeone 阅读(366) 评论(0) 推荐(0) 编辑

摘要: 为SQL Server 数据类型,属于浮点数类型。存储数据范围是:-1038~1038-1 的固定精度和小数位的数字。一个decimal类型的数据占用了2~17个字节。decimal数据类型在SQL Server中的定义的形式如下:decimal[(p[,s])]:其中,p是指精度,指定小数点左边和右边可以存储的十进制数字的最大个数。精度必须是1~38之间的值。s是指小数数位,小数数位必须是0~p之间。 阅读全文

posted @ 2011-03-11 12:10 beeone 阅读(18296) 评论(0) 推荐(1) 编辑

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 35 下一页