搜索到与相关的文章
Hive

hive union all 使用

功能:将两个表中的同样的字段拼接到一起測试:createexternaltableIFNOTEXISTStemp_uniontest_ta(a1string,a2string)partitionedby(dtstring)rowformatdelimitedfieldsterminatedby'\t'storedastextfile;ALTERTABLEtemp_uniontest_taADDIFNOTEXISTSPARTITION(dt='2014-10

系统 2019-08-12 01:55:40 5401

C++

C++中Union的介绍

C++中Union的介绍Union是很有意思的类,里面的全部数据共用一段内存,Union的大小就是最大的数据成员的大小。默认访问权限是公有的。#include#includeusingnamespacestd;union{unsignedinta;charb[5];}c,d;voidmain(void){inti=0;c.a=0x31313131;char*e=&c.b[2];for(i=0;i<=4;i++){pri

系统 2019-08-12 01:33:07 5400

各行各业

Installation of Munin node/master ¶

LinuxInstallation-Munin-TracInstallationofMuninnode/master¶TableofContentsInstallationonDebian/UbuntuMuninnodeMuninmasterInstallationonRedHatEnterprise3(RHEL3)MuninnodeMuninmasterInstallationonRedHatEnterprise4(RHEL4)MuninnodeMuni

系统 2019-08-12 01:31:41 5394

DB2

DB2错误码--- 57016 表不活动,不能访问

最近一个项目中使用db2数据库,搞死我了,执行插入语句时出现:57016因为表不活动,所以不能访问它,上网上搜一大堆人说解决方法为:执行命令:reorgtableXXX;即可。可是我运行reorgtableXXX也出错,后来发现是使用DbVisualizer出的问题。最后用DB2原有的控制中心可以执行reorgtableXXX,问题解决了。DB2错误码---57016表不活动,不能访问

系统 2019-08-29 23:15:27 5390

Python

Python 获取本机 IP/MAC(多网卡)

基本方法Python获取本机IP地址的一般方法为importsocketIP=socket.gethostbyname(socket.gethostname())通过gethostname获取主机名,再用gethostbyname将主机名转换为IP地址。那么,问题来了。如果主机有多个网卡/IP,怎样获取某个指定的IP地址呢?一个方法是通过socket.gethostbyname_ex获取主机IP地址列表,然后遍历列表取得自己需要的IP。importsock

系统 2019-09-27 17:50:53 5388

Weblogic

修改WebLogic控制台密码

首先在console控制台myrealm菜单中选中要修改密码的用户在Passwords标签页中,设置新密码。点击“Save”保存。Logout出控制台,此时发现用老密码不再能登录控制台。修改domain下的boot.properties和domain/AdminServer/security下的boot.properties文件为明文密码。重启AdminServer即可生效!修改WebLogic控制台密码

系统 2019-08-12 09:30:38 5383

C#

C# LiveUpdate.exe实现文件在线更新升级

Download:/Files/kenchell/LiveUpdate.rar客户端设置步骤:Step1:双击D:\LiveUpdate\LiveUpdate.exe桌面图标LiveUpdate.exe,弹出下载界面。Step2:按住Ctrl+Alt+Shift+F12弹出下载链接地址配置。说明:DownloadUrl:要下载的文件所在服务器路径LiveUpdatePath:文件下载完成后将生成一份_UpdateFile_.xml文件用于下次服务器上文件有

系统 2019-08-12 01:33:23 5381

Oracle

oracle中判断记录是否存在

为了避免全表扫描,应该这样写:Sql代码selectspu_idfromtbcat2.spuwherecategory_id=#value#and(status=0orstatusisnull)andrownum<2selectspu_idfromtbcat2.spuwherecategory_id=#value#and(status=0orstatusisnull)andrownum<2而不是实用count(*)函数,对于海量数据全表扫描性能是极差的or

系统 2019-08-12 01:52:13 5373

Android

AndroidVirtual Devices (AVD)创建、设置

1.将android-sdk中的tools目录添加在系统目录中(即环境变量中的path中)¥androidlisttargetsAvailableAndroidtargets:id:1or"android-3"Name:Android1.5Type:PlatformAPIlevel:3Revision:4Skins:HVGA(default),HVGA-L,HVGA-P,QVGA-L,QVGA-Pid:2or"GoogleInc.:GoogleAPIs:3

系统 2019-08-29 23:47:54 5369