![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
张施文
问题不大,个人公号:北辰游戏工作室
展开
-
jdbcTemplate查询结果为对象list
1. RowMapper<WmsExpensesSettleEntity> rowMapper1=new BeanPropertyRowMapper<WmsExpensesSettleEntity>(WmsExpensesSettleEntity.class); List<WmsExpensesSettleEntity> list= jdbcTemplate.query(s+where + " and (bill_orderno ='' or bill_orderno =原创 2022-05-27 13:33:38 · 1952 阅读 · 0 评论 -
mysql中字符串=0
背景 mysql 数据库 tb_task 表 中title是varchar SELECT t.* from tb_task t where t.title=0; 会查到所有数据 解决办法 需要用如下写法 SELECT t.* from tb_task t where t.title=‘0’;一条查不到 原因 "Strings are automatically converted to numbers and numbers to strings as necessary."这意味着为了将字符串原创 2022-03-31 14:03:02 · 2943 阅读 · 0 评论 -
oracle 查询某个字段中,号存在的个数
oracle 查询某个字段中,号存在的个数 总长-被替换的长度; select length('0,130000,130600,130634') - length(replace('0,130000,130600,130634',',','')) from dual;原创 2022-03-05 10:06:34 · 1787 阅读 · 0 评论 -
数据库查询历史,及建表
select * from zw10 as of timestamp to_timestamp('2020-11-03 08:00:00','yyyy-mm-dd hh24:mi:ss') where zwe001='1103-3-0017'; 某个时间表 create table appraise_log as SELECT * FROM order_conf WHERE 1=2; 建表原创 2020-12-17 14:10:34 · 1774 阅读 · 0 评论 -
mysql5.7安装-2020-07-4
然后点击Next 点击Execute 然后Next D:\Program Files\MySQL\MySQL Server 5.7\bin 设置path; mysql -uroot -padmin测试原创 2020-07-04 16:04:29 · 1377 阅读 · 1 评论 -
MySQL-2020-6-27
原创 2020-06-28 22:10:51 · 1160 阅读 · 0 评论 -
oracle数据库-2020-06-25
orcale没有自动增长 _:匹配一个字符 %匹配任意长度 [ ]匹配指定范围 [1-2] [^]不在范围的一个字符原创 2020-06-27 17:06:23 · 1280 阅读 · 0 评论 -
Oracle02
—视图 —视图的概念:视图就是提供一个查询的窗口,所有数据来自于原表。 —查询语句创建表 create table emp as select * from scott.emp; select * from emp; —创建视图【必须有dba权限】 create view v_emp as select ename, job from emp; —查询视图 select * from v_emp; —修改视图[不推荐] update v_emp set job='CLERK' where ename=原创 2020-05-25 00:25:46 · 1296 阅读 · 0 评论 -
Oracle01
–创建表空间 create tablespace itheima datafile 'c:\itheima.dbf' size 100m autoextend on next 10m; –删除表空间 drop tablespace itheima; –创建用户 itcast 为表空间名称 datafile 指定表空间对应的数据文件 size 后定义的是表空间的初始大小 autoextend o...原创 2020-05-24 11:38:16 · 1258 阅读 · 0 评论