数据库操作查看所有的数据库
hive> show databases ;
使用数据库default
hive> use default;
查看数据库信息
hive > describe database default;
OK
db_name comment location owner_name owner_type parameters...
分类:
数据库 时间:
2015-07-14 17:55:48
阅读次数:
182
题意:给n把枪,m个怪兽,每把枪可消灭1怪兽,并获得能量=枪的攻击力-怪兽的防御力。求如何射杀能获得最多能量?(不必杀光)思路:用最大攻击力的枪杀防御力最小的怪兽明显可获得最大能量。如果每把枪都去射杀刚好1点能量都拿不到的怪物,那简直等于把枪全丢掉。 1 //#pragma comment(link...
分类:
其他好文 时间:
2015-07-12 20:16:15
阅读次数:
171
轻论坛StartBBS、YouBBS、Xiuno对比July 18, 2014 4:39 PMjackie软件1 Comment一提到论坛程序,绝大部分都会想到Discuz、PHPWind,但是这些论坛程序功能比较强大,导致后台也很复杂,维护起来不容易。看到V2EX,觉得这个挺不错的,发现有不少类似...
分类:
其他好文 时间:
2015-07-12 00:05:52
阅读次数:
344
在配置的INI中加上这些[mysql]default-character-set=utf8no-auto-rehash# Remove the next comment character if you are not familiar with SQL#safe-updates[mysqld]co...
分类:
数据库 时间:
2015-07-09 14:28:20
阅读次数:
132
查看用户列表cat /etc/passwd 可以查看所有用户的列表w 可以查看当前活跃的用户列表cat /etc/group 查看用户组新建用户1、添加新的用户账号使用useradd命令,其语法如下:代码:useradd 选项 用户名其中各选项含义如下:代码:-c comment 指定一段注释性描述...
分类:
系统相关 时间:
2015-07-09 12:52:54
阅读次数:
130
版本:8.10
方法:tools>options...>editor>colors and fonts
syntax coloring选择 comment、 C++ comment,改color,font....
分类:
其他好文 时间:
2015-07-09 11:22:40
阅读次数:
121
方式1 :#include #include #pragma comment(lib, "WS2_32") // 链á′接ó到μ?WS2_32.lib class CInitSock{ public: CInitSock(BYTE minorVer = 2, BYTE majorVer = 2) {...
分类:
其他好文 时间:
2015-07-08 18:11:34
阅读次数:
104
windows程序设计示例: 1 #include "windows.h" 2 #pragma comment(lib, "winmm") 3 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 6 int WINAPI WinMa.....
一:订单商品数据模型1.数据库执行脚本 创建数据库表代码: 1 CREATE TABLE items ( 2 id INT NOT NULL AUTO_INCREMENT, 3 itemsname VARCHAR(32) NOT NULL COMMENT '商品名称', 4 pric...
分类:
其他好文 时间:
2015-07-08 00:24:06
阅读次数:
125
#include
#include
#include
#pragma comment(lib,"ws2_32.lib")
using namespace std;
void main()
{
//加载套接字库
WORD wVersionRequested;
WSADATA wsaData;
int err;
wVersionRequested = ...