清空表 oracle --truncate truncate table gh_qytc_ls; //从一个表插入到另外一个表 insert into gh_qytc_ls SELECT * FROM gh_qytc tc; 快速copy一张表数据到另外一张表 1、创建一个临时表,字段和要用的表相同... ...
分类:
数据库 时间:
2018-12-27 13:16:46
阅读次数:
153
Ruby File 类和方法 File 表示一个连接到普通文件的 stdio 对象。open 为普通文件返回该类的一个实例。 类方法 序号方法 & 描述 1File::atime( path) 返回 path 的最后访问时间。 2File::basename( path[, suffix]) 返回 ...
分类:
其他好文 时间:
2018-12-25 14:27:41
阅读次数:
166
Django框架之第三篇模板语法(重要!!!) Django框架之第三篇模板语法(重要!!!) Django框架之第三篇模板语法(重要!!!) Django框架之第三篇模板语法(重要!!!) 一、什么是模板? 只要是在html里面有模板语法就不是html文件了,这样的文件就叫做模板。 二、模板语法分 ...
分类:
其他好文 时间:
2018-12-21 16:07:28
阅读次数:
189
1. MySQL DELETE语句介绍 要从表中删除数据,请使用MySQL DELETE语句。下面说明了DELETE语句的语法: delete from table_name where condition; delete from table_name where condition; 在上面查询 ...
分类:
数据库 时间:
2018-12-14 13:06:18
阅读次数:
197
ES5 http://www.w3school.com.cn/jsref/jsref_obj_math.asp ES6 Math.trunc() - 取整 Math.sign() Math.cbrt() Math.hypot() ...
分类:
其他好文 时间:
2018-12-09 16:36:28
阅读次数:
207
--INSTR函数 SELECT INSTR(' HELLO WORLD','H') FROM DUAL; --LTRIM RTRIM函数 SELECT LTRIM('*HELLO=','*') FROM DUAL; SELECT RTRIM('=HELLO=','=') FROM DUAL; SE... ...
分类:
数据库 时间:
2018-12-08 21:18:37
阅读次数:
182
No, TRUNCATE is all or nothing. You can do a DELETE FROM <table> WHERE <conditions> but this loses the speed advantages of TRUNCATE. ...
分类:
其他好文 时间:
2018-12-04 20:36:02
阅读次数:
131
importmathprint(math.trunc(3.485))#取整数print(math.pow(3,4))#乘方print(math.pi)print(math.sqrt(100))#开方print(math.log(10))#e为底,10的自然对数print(math.log(10,3))#e为底,10的自然对数381.03.14159265358979310.02.302585092
分类:
编程语言 时间:
2018-12-04 18:54:42
阅读次数:
260
-- 一、创建表-- 创建图书馆管理系统所涉及的表-- 创建产品销售系统所涉及的表-- 图书表book(bid,bname,price,qty)DROP TABLE book cascade constraints;DROP TABLE lib;DROP TABLE reader; DROP TAB ...
分类:
其他好文 时间:
2018-11-30 11:27:49
阅读次数:
233
文件的读写模式: 只读:r 只写:w 追加:a 读写模式:r+ 写读模式:w+ 追加读模式:a+ 1、默认不写的话,就是只读模式 f=open('user.txt') 2、r模式打开一个不存在的文件,会报错 3、r模式打开文件后,不能进行写的操作 比如: f=open('user.txt') f.w ...
分类:
其他好文 时间:
2018-11-28 23:43:44
阅读次数:
236