摘要:
ALTER TABLE users CONVERT TO CHARACTER SET utf8;
阅读全文
posted @ 2012-05-30 13:28
絕對零℃
阅读(388)
推荐(0)
摘要:
1:显示所有数据库mysql>show Databases;2:创建数据库mysql> Create Database DB;3:选择 数据库mysql> USE DB; 4: 显示表mysql> SHOW TABLES;5:创建表mysql> create table tb (Name varchar(10),ID int(4));6:显示表的结构:mysql> DESCRIBE MYTABLE; 7:导入.sql文件命令 mysql>use database;mysql>source c:/mysql.sql;或\. c:/mysql.sql
阅读全文
posted @ 2012-05-16 10:48
絕對零℃
阅读(129)
推荐(0)
摘要:
1 public int[] Ripple(int[] sortData) 2 { 3 int StartIndex = 1; 4 int top = sortData.Length - 1; 5 int Bottom = 0; 6 int step = 1; 7 int swap; 8 while (Bottom < top) 9 {10 for (int i = Start...
阅读全文
posted @ 2012-05-16 10:14
絕對零℃
阅读(298)
推荐(0)
摘要:
在CMD 下 输入: Mysql -u root -p --default-character-set=utf8 database <backpath注:出现这种错误一般是由于备份数据的字符集和恢复时使用的字符集不一致所致,常用的两种字符集是UTF8GBK
阅读全文
posted @ 2012-05-15 18:01
絕對零℃
阅读(13665)
推荐(1)
摘要:
1 private int[] Insertion(int[] sortData) 2 { 3 bool isAdded; 4 int temp = 0; 5 int currentLenth = 1; 6 afterSortData = new int[sortData.Length]; 7 if (sortData.Length >= 1) 8 afterSortData[0] = sortData[0]; 9 ...
阅读全文
posted @ 2012-05-15 17:14
絕對零℃
阅读(329)
推荐(0)
摘要:
private int[] Bubble(int[] sortData) { afterSortData = sortData; int tempData; int remainingLength = afterSortData.Length; for (int i = 0; i < afterSortData.Length; i++, remainingLength--) { for (int j = 1; j < remainingLen...
阅读全文
posted @ 2012-05-15 17:13
絕對零℃
阅读(186)
推荐(0)
摘要:
//并归排序算法 1 static void Main(string[] args) 2 { 3 Random rd = new Random(); 4 int[] testData = new int[20]; 5 SetNewData(rd, testData); //初始化测试数组 6 Console.WriteLine("排序前"); 7 WriteDate(testData); //输出排序前数组 ...
阅读全文
posted @ 2012-05-15 15:29
絕對零℃
阅读(589)
推荐(0)
摘要:
1 public void DataViewShow(GridView GV, int showLenth) 2 { 3 GridViewRow currentRow; 4 for (int i = 0; i < GV.Rows.Count; i++) 5 { 6 currentRow = GV.Rows[i]; 7 for (int j = 0; j < GV.Columns.Count; j++) 8 ...
阅读全文
posted @ 2012-05-11 15:56
絕對零℃
阅读(5088)
推荐(0)