--创建一个表,此表作为子表
create table fk_t as select *from user_objects;
delete from fk_t where object_id is null;
commit;
--创建一个表,此表作为父表
create table pk_t as select *from user_objects;
delete from p...
分类:
数据库 时间:
2014-05-15 11:17:07
阅读次数:
248
创建表:
hive> CREATE TABLE pokes (foo INT, bar STRING);
Creates a table called pokes with two columns, the first being an integer and the other a string
创建一个新表,结构与其他一样
hive> create table n...
分类:
其他好文 时间:
2014-05-15 07:07:58
阅读次数:
303
2014-5-12 晴 复习总结
① 表格的意义,含义?
表格应该用来展现那些适合表格化显示的信息,比如数据的显示,统计或者二维报表之类的信息,而不是作为一种而已的工作
② 表格有哪些元素?
表格元素:table thead tbody tfoot caption tr th td .... 较常用
...
分类:
Web程序 时间:
2014-05-15 06:55:22
阅读次数:
418
快速排序最坏情况下时间复杂度是O(n*n),但是它平均时间复杂度是O(N*logn),并且常数因子很小,可实现就地排序,所以被作为内排序的常用排序方法.
#include
using namespace std;
void swap(int &i,int &j)
{
int temp=i;
i=j;
j=temp;
}
int partition(int *vector...
分类:
其他好文 时间:
2014-05-15 06:05:35
阅读次数:
254
1. Check the /boot partition size to decide if need clean up
$ df
2. Check the current used Linux kernel
$ uname -r
3. Check all Linux kernel to decide which ones to be removed
$ ls /boot...
分类:
其他好文 时间:
2014-05-15 03:24:16
阅读次数:
235
1、Ring的基本概念
Ring是swfit中最重要的组件,用于记录存储对象与物理位置之间的映射关系,当用户需要对Account、Container、Object操作时,就需要查询对应的Ring文件(Account、Container、Object都有自己对应的Ring),Ring 使用Region(最近几个版本中新加入的)、Zone、Device、Partition和Replica来维护这些信...
分类:
其他好文 时间:
2014-05-14 15:22:15
阅读次数:
1213
题目一:
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
...
分类:
其他好文 时间:
2014-05-14 15:10:01
阅读次数:
293
一、 创建表
在官方的wiki里,example是这样的:
Sql代码
CREATE [EXTERNAL] TABLE [IF NOT EXISTS] table_name [(col_name data_type [COMMENT col_comment], ...)] [COMMENT table_comment] [PARTITION...
分类:
数据库 时间:
2014-05-14 14:50:27
阅读次数:
463
-- 创建数据表,定义存储数据信息表的结构--CREATE TABLE T_Student (name
text, age integer, phoneNo text);--
删除数据表,通常在不需要使用某一个表的时候,才会用到,日常开发中极少会用到此命令--DROP TABLE T_Student...
分类:
移动开发 时间:
2014-05-14 11:20:03
阅读次数:
395
oracle数据库的权限系统分为系统权限与对象权限。系统权限( database system
privilege )可以让用户执行特定的命令集。例如,create table权限允许用户创建表,grant any privilege
权限允许用户授予任何系统权限。对象权限( database ob...
分类:
数据库 时间:
2014-05-14 10:40:04
阅读次数:
399