数据库技术-月排行
1、C# SqlHelper 1 public static class SqlHelper 2 { 3 private static readonly string conStr = ConfigurationManager.ConnectionStrings["connStr"].Connect ...
分类:数据库技术 时间:2017-07-03 18:57:29 收藏:0 阅读:306
在linux下向oracle数据库导入数据库文件 执行语句:imp C##root/123456 file=/home/oracle/dbf/crm.dmp ignore=y full=y; 报错:IMP-00003: 遇到 ORACLE 错误 6550 ORA-06550: 第 1 行, 第 19 ...
分类:数据库技术 时间:2017-07-07 17:07:21 收藏:0 阅读:914
mybatis 3.3.0中对于时间参数进行比较时的一个bug. 如果拿传入的时间类型参数与空字符串''进行对比判断则会引发异常. 所以在上面的代码中去该该判断, 只保留非空判断就正常了 <if test="createTime != null and createTime !='' " > dat ...
分类:数据库技术 时间:2017-07-13 15:19:55 收藏:0 阅读:2874
以下以SQL Server 2000中的NorthWind数据库中的Customers表为例, 用 临时表 + While循环 的方法, 对Customers表中的CompanyName列进行遍历 create table #temp( id int identity(1,1), customer  ...
分类:数据库技术 时间:2017-07-14 19:10:22 收藏:0 阅读:459
这里,请允许我把mysqlserver和sqlserver注释一起说明 1、单行注释 1)mysql中,可以用“-- ”和“ --”来注释 2)sql中,可以用‘’--‘’和“--”来注释 以上,我们可以看出在mysql中的单行注释比sql中多了空格 2、多行注释 1)mysql中,用/* 和*/ ...
分类:数据库技术 时间:2017-07-24 12:35:39 收藏:0 阅读:1088
最近使用git命令从github克隆仓库到版本,然后进行提交到github时报错如下: [root@node1 git_test]# git push origin mastererror: The requested URL returned error: 403 Forbidden while ...
分类:数据库技术 时间:2017-08-03 15:34:54 收藏:0 阅读:2537
问题描述: 对Oracle数据库执行序列化脚本出错,ora-00922 missing or invalid option #无效的选项 问题解决: 对于set define off --这个是sqlplus的命令,需要在命令窗口执行(命令窗口就是sqlplus,plsql要安装此插件),打开载入s ...
分类:数据库技术 时间:2017-08-22 09:29:02 收藏:0 阅读:608
方法一:(效率最高)select * from test as a where typeindex = (select max(b.typeindex) from test as b where a.type = b.type );方法二:(效率次之)select a.* from test a,( ...
分类:数据库技术 时间:2017-08-30 14:49:06 收藏:0 阅读:636
DROP TABLE sp_countries CREATE TABLE sp_countries( id INT NOT NULL IDENTITY(1,1) PRIMARY KEY, zh_name NVARCHAR(100) NULL, en_name NVARCHAR(100) NULL, ...
分类:数据库技术 时间:2017-08-31 12:07:39 收藏:0 阅读:392
String data,right truncated:1406 Data too long for column 'content' at row 1 当Mysql提示如下时: 1、首先查看存入的文本内容的大小,根据内容大小设置类型 如果超出,根据大小进行更换类型 2、如果还是超出那可能是Mysq ...
分类:数据库技术 时间:2017-08-31 18:53:34 收藏:0 阅读:4887
在mysql中执行以下命令: drop database hive; create database hive; alter database hive character set latin1; 重启hive ...
分类:数据库技术 时间:2017-09-14 12:58:17 收藏:0 阅读:1208
mysql mysql-connector-java 5.1.35 ...
分类:数据库技术 时间:2017-09-21 20:02:57 收藏:0 阅读:564
准备(两张表t1,t2):表t1:mysql>select*fromt1;+-------+---------+|t1_id|t1_name|+-------+---------+|1|t1_1||2|t1_2|+-------+---------+2rowsinset(0.02sec)表t2:mysql>select*fromt2;+-------+---------+|t2_id|t2_name|+-------+---------+|2|t2_2||3|t2_3|+---..
分类:数据库技术 时间:2017-09-26 19:11:39 收藏:0 阅读:598
创建用户: mysql> grant all on db1.* to mycat@'%' identified by '123456'; Query OK, 0 rows affected (0.00 sec) mysql> flush privlege; 查看: mysql> select use... ...
分类:数据库技术 时间:2017-09-30 20:26:54 收藏:0 阅读:1350
两种方案: 用queryForList方法替换queryForObject或者queryForMap,因为这两个方法必须要有值,不能为空。 把这个异常捕获,用try/catch。 ...
分类:数据库技术 时间:2017-10-09 12:39:58 收藏:0 阅读:729
不知道大家在win7 64位系统下用 PB连接oracle数据库时,是否遇到过“oracle library oci.dll could not be loaded”问题。 咨询了很多人,(他们都说是我的PB和oracle没装好,于是听取了他们的意见,抱着一线希望,把PB和oracle都卸了重装,可 ...
分类:数据库技术 时间:2017-10-28 12:01:12 收藏:0 阅读:932
select sum(1) as col_0_0_, sum(case vciinfo.useable when -1 then 1 else 0 end) as col_1_0_, sum(case when vciinfo.activatetime is null then 0 else 1 e ...
分类:数据库技术 时间:2017-11-02 16:42:21 收藏:0 阅读:422
此博文主要介绍在CentOS环境中安装Oracle11g.系统环境为CentOS7.2。安装前环境准备安装所需要的软件包:yuminstallbinutilscompat-libcap1compat-libstdc++gccgcc-c++glibcglibc-develkshlibaiolibaio-devellibgcclibstdc++libstdc++-devellibXilibXtstmakesysstatunixODBC..
分类:数据库技术 时间:2017-11-03 10:54:56 收藏:0 阅读:3645
运行环境:centos7数据库:mariadb问题描述:在yum安装mariadb数据库运行后运行了/var/lib/mysql_install_db命令,从而导致mariadb数据库启动或重启都失败。故障解决:[centos@centosmysql]$sudosystemctlstartmariadb.serviceJobformariadb.servicefailedbecausethecontrolproc..
分类:数据库技术 时间:2017-11-04 23:21:34 收藏:0 阅读:3388
<settings> <!-- 打印查询语句 --> <setting name="logImpl" value="STDOUT_LOGGING" /> </settings>LOG4J2,STDOUT_LOGGING,SLF4J,LOG4J,... ...
分类:数据库技术 时间:2017-11-07 19:15:56 收藏:0 阅读:376
110810911011111210978
上一页219544下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!