上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: 1.字符串序列翻转 字符串切片 a_str = “abc”[::-1] 2.字符串分割: b_str = ‘ ds fdf ds ’ b_str .split(" 空格") 3.字符串拼接 c_str = ' ' c_str .join(列表) 实例方法代码: 阅读全文
posted @ 2019-01-22 20:23 江湖萤火虫 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一、天数: 在Oracle中,两个日期直接相减,便可以得到天数; select to_date('08/06/2015','mm/dd/yyyy')-to_date('07/01/2015','mm/dd/yyyy') from dual; 二、月数: 计算月数,需要用到months_between 阅读全文
posted @ 2019-01-22 20:18 江湖萤火虫 阅读(4171) 评论(0) 推荐(0) 编辑
摘要: DECLARE i number := 0;BEGIN for i in 1 .. 3000 loop insert into computers (comNo, compModel, buyTime, price, owner) values (i, '8' + i, to_date('' + s 阅读全文
posted @ 2019-01-22 20:15 江湖萤火虫 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1.Python 3.6 安装包 1.要加环境变量 2.pip安装PIL库 3.pip安装pytesseract模块 2.tesseract-ocr-setup-4.00.00dev.exe 光学识别软件 D:\Tesseract-OCR\tessdata 要加入环境变量。 3.jTessBoxEd 阅读全文
posted @ 2019-01-22 11:35 江湖萤火虫 阅读(485) 评论(0) 推荐(0) 编辑
摘要: select * from persons o where trunc(o.create_date) = to_date('2018-07-30','yyyy-mm-dd') minus 对比数据完全一样。 select * from persons o where o.create_date > 阅读全文
posted @ 2019-01-22 11:06 江湖萤火虫 阅读(2992) 评论(0) 推荐(0) 编辑
摘要: 查询以及删除一个数据库表内的重复数据。 1.查询表中的多余的重复记录,重复记录是根据单个字段来判断的。 select * from biao where id in (select id from biao group by id having count(id) >1 ) 2.删除表中的多余的重复 阅读全文
posted @ 2019-01-22 11:05 江湖萤火虫 阅读(2323) 评论(0) 推荐(0) 编辑
摘要: mySQL数据库: SELECT id_p,IFNULL(math,0)+IFNULL(english,0) 总分 from mytest_brian1 Oracle 数据库: select id_p , nvl(address,0)* age from Persons2 ; NVL( string 阅读全文
posted @ 2019-01-21 17:43 江湖萤火虫 阅读(326) 评论(0) 推荐(0) 编辑
摘要: oracle 的分页查询: select * from (select o.*,rownum rn from Persons o) where rn >40 and rn <=60 ; mySQL 的分页查询: select o.* from Persons o limit 40,20 ; limi 阅读全文
posted @ 2019-01-21 12:05 江湖萤火虫 阅读(399) 评论(0) 推荐(0) 编辑
摘要: SQL(Structure Query Language)语言是数据库的核心语言 1. 数据查询语言DQL 数据查询语言DQL基本结构是由SELECT子句,FROM子句,WHERE 子句组成的查询块: SELECT <字段名表> FROM <表或视图名> WHERE <查询条件> 2 .数据操纵语言 阅读全文
posted @ 2019-01-17 17:46 江湖萤火虫 阅读(844) 评论(0) 推荐(0) 编辑
摘要: @echo offecho 正在删除navicat注册表REG DELETE HKEY_CURRENT_USER\Software\PremiumSoft\Data /fREG DELETE HKEY_CURRENT_USER\Software\Classes\CLSID\{2CE86A2B-F0D 阅读全文
posted @ 2019-01-15 11:18 江湖萤火虫 阅读(9964) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页