Create/Drop/Grant/Revoke Roles and PrivilegesHive Default Authorization - Legacy Modehas information about these DDL statements:CREATE ROLEGRANT ROLER...
分类:
其他好文 时间:
2015-01-24 22:39:12
阅读次数:
445
Create/Drop/Alter ViewCreate ViewDrop ViewAlter View PropertiesAlter View As SelectVersion informationIconView support is only available in Hive 0.6 a...
分类:
其他好文 时间:
2015-01-24 22:37:22
阅读次数:
464
一、导入 1、导入json数据 我们先将表user删除掉,以便演示效果:> db.user.drop(); true > show collections; system.indexes 然后导入数据[root@localhost bin]#./mongoimport -d my_mongod...
分类:
数据库 时间:
2015-01-24 11:29:49
阅读次数:
205
一.索引CREATE INDEX索引名ON表名(字段1, 字段2,……字段n)CREATE INDEXidx_person_nameageONT_Person(FName,FAge)DROP INDEX索引名ON表名DROP INDEXidx_person_nameageONT_Person;二.约...
分类:
数据库 时间:
2015-01-24 11:20:04
阅读次数:
147
一、基础1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sqlserver --- 创建 备份数据的 device USE master EXEC sp_addumpdevice 'dis...
分类:
数据库 时间:
2015-01-24 00:15:24
阅读次数:
304
1 declare @name varchar(1000) 2 declare @sql varchar(1000) 3 4 if object_id('tempdb..#space') is not null drop table #space 5 create table #space(na.....
分类:
数据库 时间:
2015-01-23 11:02:30
阅读次数:
272
-->Title:Generating test data-->Author:wufeng4552-->Date :2009-09-30 08:52:38set nocount onif object_id('tb','U')is not null drop table tbgocreate tab...
分类:
数据库 时间:
2015-01-23 00:41:21
阅读次数:
204
flashback table test_drop to before drop;test_drop:误删的那张表博主以万分悔恨的心写下了这个深刻地教训:1)不要随便玩drop table;2)这个命令是真的能恢复,看起来完好无损;3)然后百度这条命令说是:必须9i或者10g以上的版本支持(还好公司...
分类:
数据库 时间:
2015-01-22 20:03:32
阅读次数:
185
mysql数据库,创建这个表DROP TABLE IF EXISTS `t_errorlog`;CREATE TABLE `t_errorlog` ( `rowid` int(11) NOT NULL AUTO_INCREMENT, `log_date` datetime DEFAULT NULL ...
分类:
Web程序 时间:
2015-01-22 20:02:25
阅读次数:
192
1、函数--drop function getMaxDate; create FUNCTION getMaxDate (y int, m int )returns datebegin DECLARE maxDate date ; select max(dateid ) into ma...
分类:
数据库 时间:
2015-01-22 19:49:33
阅读次数:
251