mysql命令 一、初试命令: show databases; # 查看当前Mysql都有那些数据,根目录都有那些文件夹 create database 数据库名; # 创建文件夹 use 数据库名; # 使用选中数据库,进入目录 show tables; # 查看当前数据库下都有那些表, crea ...
分类:
数据库 时间:
2017-02-01 21:46:09
阅读次数:
235
# 删除目录下那两个文件之外的所有文件 find dir/ -type f ! -name file1 -a ! -name file2 | xargs rm -f # 删除所有空目录(非空目录不会被删除,但是会出错误信息,可以忽略) find dir/ -type d | xargs rmdir ...
分类:
系统相关 时间:
2017-02-01 20:56:17
阅读次数:
203
首先需要引用命名空间 ,同时也需要右击'引用' --> '添加引用' --> '程序集' --> '框架' --> 'System.Configuration',SqlHelper属于三层中的DAL层: using System.Data; using System.Data.SqlClient; ...
分类:
数据库 时间:
2017-02-01 18:55:13
阅读次数:
271
【Numeric Type Attributes】 INT(4) specifies an INT with a display width of four digits. This optional display width may be used by applications to disp ...
分类:
其他好文 时间:
2017-02-01 15:37:47
阅读次数:
126
二分查找法的实现和应用汇总 在学习算法的过程中,我们除了要了解某个算法的基本原理、实现方式,更重要的一个环节是利用big-O理论来分析算法的复杂度。在时间复杂度和空间复杂度之间,我们又会更注重时间复杂度。 时间复杂度按优劣排差不多集中在: O(1), O(log n), O(n), O(n log ...
分类:
其他好文 时间:
2017-02-01 15:37:25
阅读次数:
263
<?php /** * Created by PhpStorm. * User: qishou * Date: 15-8-2 * Time: 上午12:00 */ //准备数组,代替从数据库中检索出的数据(共有三个必须字段id,name,pid) header("content-type:text/ ...
分类:
其他好文 时间:
2017-02-01 11:37:57
阅读次数:
144
Delphi 封装了一个很强大的线程类 TThread, 我们也自己动手制作一个简单的线程类 首先Type一个类 [delphi] view plain copy type TwwThread = class constructor Create; overload; destructor Dest ...
分类:
编程语言 时间:
2017-02-01 10:46:30
阅读次数:
263
[delphi] view plain copy var CreatorRenderer : TCreatorRenderer; Form1: TForm1; 窗体代码: [delphi] view plain copy {$R *.dfm} procedure TForm1.FormCreate( ...
Example 1: A never stop while loop return a never type. Example 2: Never run If block You can use this to do exhaustive checks in union types. For exa ...
分类:
其他好文 时间:
2017-02-01 10:38:28
阅读次数:
155
//封装一个类似jquery的ajax方法,当传入参数,就可以发送ajax请求 //参数格式如下{ // type:"get"/"post", // dataType:"json"/"jsonp", // url:"地址", // data:{key:value} // success:functi... ...
分类:
Web程序 时间:
2017-02-01 10:35:55
阅读次数:
291