数据库
普通网友
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
resultset使用
基本的ResultSet 完成了查询结果的存储功能原创 2014-10-21 21:01:41 · 469 阅读 · 0 评论 -
statement preparedstatement CallableStatement
CallableStatement,PreparedStatement原创 2014-10-30 17:20:32 · 444 阅读 · 0 评论 -
request(session )
之所以会出现此类问题是因为我们在Response输出响应后才创建Session的。(因为那时候服务器已经将数据发送到客户端了,即:就无法发送Session ID 了)解决办法:你只需要在你的程序中将创建访问Session的语句【request.getSession()】提前至Response输出数据之前就好了。原创 2014-11-03 11:12:41 · 466 阅读 · 0 评论 -
oracle数据库的学习过程
insert into productinfo select '1','1',1,1,'1','1','js' from dual union allselect '2','2',2,2,'2','2','bj' from dual union allselect '3','3',3,3,'3','3','sh' from dual union allselect '4','4',原创 2014-10-20 10:41:49 · 370 阅读 · 0 评论 -
连接查询
on 和 where 在连接查询中原创 2014-10-20 10:58:08 · 335 阅读 · 0 评论 -
inner join/left join/right join/full join
inner join 不以任何表为基准 只是返回查询条件中xianfdeng原创 2014-10-20 11:24:07 · 365 阅读 · 0 评论 -
修改mysql数据库的库名
假如源数据库名称为“srcdb”,目标数据库名称为"trgdb"首先创建目标数据库:create database trgdb;查看源数据库中的所有表名:use information_schema;select table_name from TABLES where TABLE_SCHEMA= ‘srcdb’;针对上面查询出来的表名,依次执行以下转载 2014-10-20 21:23:56 · 593 阅读 · 1 评论 -
struts 1.x 2.x
lookupdispatchAction dispatchAction : 在一个表单处理不同的dongzu原创 2014-11-21 14:47:08 · 411 阅读 · 0 评论 -
mysql 中文乱码问题
使用sqlyog工具将所在的表原创 2014-10-21 16:11:18 · 330 阅读 · 0 评论 -
result结果集 和sql语句中的对应的column
需要注意的是将结果存放到resultset中时 如果是原创 2014-10-29 10:23:03 · 842 阅读 · 0 评论 -
使用嵌套select子式 解决mysql不能叠加使用如max(sum())的问题
网上也有解决方案 有的有瑕疵 有的较复杂()原创 2014-10-28 19:08:40 · 2753 阅读 · 0 评论 -
mysql 中单引号的使用
select * from user where age = 0 limit 0,3;这样的语句在mysql中不能tonggu原创 2014-10-24 10:04:03 · 482 阅读 · 0 评论 -
oracle学习过程2
insert into productinfo select '1','1',1,1,'1','1','js' from dual union allselect '2','2',2,2,'2','2','bj' from dual union allselect '3','3',3,3,'3','3','sh' from dual union allselect '4','4',原创 2014-10-23 16:22:42 · 420 阅读 · 0 评论 -
在mysql 中模拟oracle中的 sequence功能
在oracle中启用 sequence : create sequence a_seq minvalue 1 maxvalue 9999原创 2014-10-24 14:55:20 · 502 阅读 · 0 评论 -
ERROR 1005 (HY000): Can't create table '.\user\#sql-558_5.frm' (errno: 1
创建外键 引用表的字段 应该是主键 使用表原创 2014-10-24 14:40:42 · 756 阅读 · 0 评论 -
union & join
之前讨论左连接 就是筛选右表中原创 2014-10-24 16:24:57 · 389 阅读 · 0 评论 -
mysql 外键关联中遇到的问题
mysql 外键关联中建议的级联是 on update cascade原创 2014-10-24 14:23:09 · 504 阅读 · 0 评论 -
错误it is already used by statement which invoked this stored functiontrigger的解决方法
drop table if exists sequencecreate table sequence(seq_name varchar(50) not null,current_val int(50) not null,increment_val int(50) not null,primary key(seq_name));create function cu原创 2014-10-27 14:30:55 · 4328 阅读 · 0 评论 -
多表连接小结
基础内链接就是对表A和表B以元组为单位做一个笛卡尔积,记为表C,然后在C中挑选出满足符合on 语句后边的限制条件的条目。 左连接就是在内连接的基础上,将A中有但C中没有的元组也加上。由于C的列数比A的列数多,所以这新增的元组左边照搬a,右边为null。 右链接就是在内连接的基础上,将B中有但C中没有的元组也加上。由于C的列数比B的列数多,所以这新增的元组右边照搬B,左边为null。转载 2014-10-28 09:36:56 · 563 阅读 · 0 评论 -
pl/sql 配置
pl/sql 和 Oracle client 安装好后,需要配置tns-admin,其实对于toad来说,不是必须的(放置在network/admin 下就可以了)。但是pl/sql 要能够正确显示tns,就需要tns-admin这个环境变量。设置完后,可以勾选option中的,logon history存储密码。原创 2015-03-12 12:41:10 · 528 阅读 · 0 评论
分享