我买了本深入浅出MySQL, 记录一下笔记。一、数据定义语言(DDL)1.创建数据库 create database name;2.显示所有的数据库 show databases;3.选择操作的数据库 use dbname;4.显示所选择的的数据库中所有的数据表 show tables;5.删除数据...
分类:
数据库 时间:
2015-06-09 19:34:27
阅读次数:
154
MEMORYSTATUSEX statex;statex.dwLength = sizeof (statex);GlobalMemoryStatusEx (&statex); _tprintf (TEXT("There is %*ld percent of memory in use.\n"), ....
1.method 1: use "acc">acc hello.acc world.mc gcc hello.c world.c >./a.out2.method 2: use"tacc">tacc foo.c fooac.acc>./a.out>tacc foo.c fooac.acc -o t....
分类:
其他好文 时间:
2015-06-09 19:22:22
阅读次数:
71
编译:javac InstallCert.java 运行:java InstallCert gsxapiut.apple.com InstallCert.java代码 /*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source...
分类:
Web程序 时间:
2015-06-09 17:53:25
阅读次数:
118
一 初始数据(共6条记录)usernameuserpwdageadminadmin18rootroot18catcat17dogdog15dog1dog115zhuzhu21二 创建数据库、创建表usercreate database youku; --创建数据库use youku; -- 选...
分类:
数据库 时间:
2015-06-09 16:36:49
阅读次数:
163
I'm learningLess and Sass these two days. Hope I can record something and use them in future.Disadvantages of CSSno way to specify variables - values ...
分类:
其他好文 时间:
2015-06-09 15:31:24
阅读次数:
127
My first try was DFS by intuition, but it ended up with MLE. So, the expected solution is to use stack:class Solution { struct Node { Nod...
分类:
其他好文 时间:
2015-06-09 15:25:31
阅读次数:
115
Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3,
Return [1,3,3,1].Note:
Could you optimize your algorithm to use only O(k) extra space?分析:通过递归设置vector的值,变量i表示当前...
分类:
其他好文 时间:
2015-06-09 13:51:09
阅读次数:
96
1、模拟器错误 错误提示:Xcode The Simulator can't be launched because it is already in use错误原因:因为运行A项目时,B项目把模拟器占用了,导致A项目无法使用模拟器。解决办法:项目B菜单Product中stop项目。
分类:
移动开发 时间:
2015-06-09 13:23:10
阅读次数:
113
Openstack-glance API
为了方便,可先自定义一个函数 放在credentials.py里面
# vi credentials.py
#!/usr/bin/env python
import os
def get_keystone_creds():
d = {}
d['username'] =os.environ['OS_USE...