1.创建表的 sql语句:use 数据库名 create table 表名(列名 类型(大小) default 默认值 primary key(主键) ;列名 类型(大小) default 默认值;......)2.select * into 新表 from 旧表 用来快速备份旧表。3.insert...
分类:
数据库 时间:
2015-04-07 09:37:33
阅读次数:
151
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
其他好文 时间:
2015-04-06 23:19:26
阅读次数:
176
gdb调试开始时,报错,提示信息如下:Detachingafterforkfromchildprocess4112.Programexitednormally.Missingseparatedebuginfos,use:debuginfo-installcyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64glibc-2.12-1.149.el6_6.5.x86_64nspr-4.10.6-1.el6_5.x86_64nss-3.14.0.0-12.el..
分类:
数据库 时间:
2015-04-06 18:54:24
阅读次数:
381
#include #include#includeusing namespace std;//智能指针的使用//智能指针类class U_ptr{ friend class hashptr; int *ip;//在hashptr中实际的需要定义的指针成员 size_t use;//使用次数的计数 U...
分类:
其他好文 时间:
2015-04-06 17:12:42
阅读次数:
163
NAT:Use'd to share host's Ip address --用来共享宿主主机的IP地址宿主主机将作为DHCP服务器,动态的给虚拟机分配IP地址,可以连接到互联网。虚拟机默认联网方式Bridged:Connected directly to the plysical network ...
分类:
其他好文 时间:
2015-04-06 15:25:49
阅读次数:
146
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integer...
分类:
其他好文 时间:
2015-04-06 11:29:06
阅读次数:
121
create database day17;use day17;create table user( id int primary key auto_increment, name varchar(40),password varchar(40), email varchar(60), birthd...
分类:
其他好文 时间:
2015-04-05 21:44:27
阅读次数:
115
Android
查看所有进程内存占用情况
(1)连接设备,打开USE调试模式
(2)打开命令行,执行命令:adb shell procrank
字段说明:
PID:进程id
VSS(Virtual Set Size): 虚拟耗用内存(包含共享库占用的内存)
RSS(Resident Set Size):实际使用物理内存(包含共享库占用的内存)
PSS(Proportional Set Size): 实际使用的物理内存(比例分配共享库占用的内存)
USS(Unique Set Size): 进程独自...
分类:
其他好文 时间:
2015-04-05 17:30:52
阅读次数:
166
//bootstrap源码中jquery版本的比较,记录一下+function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((version[0] < 2 && version[1] < 9.....
分类:
Web程序 时间:
2015-04-05 11:56:34
阅读次数:
156
使用lnmp安装wordpress在登录phpmyadmin数据库的时候诡异的出现了 phpmyadmin#1045 无法登录 MySQL 服务器,解决方法如下:1 修改root的密码—不可以行2 skip-grant-tables,后面不会新建用户–失败3 mysql> use mysql; .....
分类:
数据库 时间:
2015-04-05 11:43:38
阅读次数:
257