数据库脚本:createtabletestcb(idvarchar(32)primarykey,namevarchar(32),photoblob,descriptiontext);Hibernate.cfg.xml
系统 2019-08-12 09:30:02 2381
使用ICE进程间通信时,IP和端口的选择服务器在创建时使用的Endpint格式为tcp-hIP地址-p端口1、IP地址的选择如果填某个网卡的地址,则只在这个地址上监听,客户端必须连这个IP才能连通,通常情况下,不同机器之间互相调用一般用0.0.0.0,表示在所有网卡上监听如果只在同一机器上不同进程之间通信,建议服务器监听IP使用127.0.0.1,客户端在连接时也用127.0.0.1,这样的好处是,默认防火墙不会弹出是否允许的警告2、端口的选择一般情况下,
系统 2019-08-12 09:26:45 2381
ZOJProblemSet-1825CompoundWordsTimeLimit:5SecondsMemoryLimit:32768KBYouaretofindallthetwo-wordcompoundwordsinadictionary.Atwo-wordcompoundwordisawordinthedictionarythatistheconcatenationofexactlytwootherwordsinthedictionary.InputS
系统 2019-08-12 09:26:40 2381
--查询表名包含某字符Select*FromsysobjectsWherenamelike'%Area%'andtype='u'--含有'XXX'字段的所有表selecta.[name]TableNamefromsysobjectsa,(select[id],count(*)bfromsyscolumnswhere[name]='SupplierREF'groupby[id])bwherea.[id]=b.[id]---查看数据库表的约束selecta.n
系统 2019-08-12 01:55:20 2381
原文:Replication的犄角旮旯(九)--sp_setsubscriptionxactseqno,赋予订阅活力的工具《Replication的犄角旮旯》系列导读Replication的犄角旮旯(一)--变更订阅端表名的应用场景Replication的犄角旮旯(二)--寻找订阅端丢失的记录Replication的犄角旮旯(三)--聊聊@bitmapReplication的犄角旮旯(四)--关于事务复制的监控Replication的犄角旮旯(五)--关于
系统 2019-08-12 01:55:17 2381
模式:createorreplaceprocedure过程名(参数名参数类型,...)is变量名变量类型;begin过程内容;end过程名;/showerr;举例:createorreplaceprocedureproc_blddesignusagearea(p_buildidnumber)is/*函数功能:统计楼栋下房屋的用途、面积、套数等信息*/l_buildareabldroom.buildarea%type;l_useareabldroom.use
系统 2019-08-12 01:54:56 2381
http://www.geeksforgeeks.org/diameter-of-a-binary-tree/1#include2#include3#include4#include5#include6usingnamespacestd;78structnode{9intdata;10structnode*left,*right;11node():data(0),left
系统 2019-08-12 01:54:22 2381
最近在做修改字符集的实验,悲剧的是修改后重启,数据库启动不了。SQL>altersystemsetnls_language='AMERICAN'scope=spfile;SQL>altersystemsetnls_territory='AMERICAN'scope=spfile;SQL>shutdownimmediate;SQL>startupORA-12700:invalidNLSparametervalue(nls_territory)解决方案:将sp
系统 2019-08-12 01:54:17 2381
SQLServer使用英文字符串的匹配的时候默认是忽略大小写的,这样用起来是比较方便的,如果想不忽略大小写也可以修改配置,但是Oracle好像不能忽略大小写,在进行字符串匹配的时候就比较麻烦了。那么该怎么解决大小写敏感的问题,把需要的数据都查询出来呢?最常见的办法就是把查询的参数和字段中的内容都转化成大写或者都转化成小写,这样就可匹配了。比如如下的查询:select*fromhr.EMPLOYEEStwhereupper(first_name)=upper
系统 2019-08-12 01:53:23 2381
createusertestidentifiedbyroot;grantcreatesession,resourcetoroot;alterusertestaccountunlock;grantcreateviewtotest;grantanysequecetotest;grantcreatesynonymtoich;--创建别名的权限dropusertestcascade;连接时用户民不区分大写和小写altersystemsetsec_case_sens
系统 2019-08-12 01:53:11 2381