06 2019 档案
摘要:一: <%@ include file="从页面文件地址"%> 一般使用相对路径,并且不支持任何表达式,静态包含。 二:<jsp:include page="从页面文件地址" flush="true|false"/> 动态包含 page属性:指定被包含文件的URL地址,是一个相对路径 flush属性
阅读全文
摘要:arr[] 的长度:9Arrays.toString(sortVal):[1, 1, 2, 3, 4, 5, 6, 7, 8] 注意: 返回类型为int 数组 :
阅读全文
摘要:concat()函数 1、功能:将多个字符串连接成一个字符串。 2、语法:concat(str1, str2,...) 返回结果为连接参数产生的字符串,如果有任何一个参数为null,则返回值为null。 group_concat()函数 功能:将group by产生的同一个分组中的值连接起来,返回一
阅读全文
摘要:日期:date>String Date date = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); System.out.println(sdf.format(date)); 日期:String>date
阅读全文
摘要:Count(*)表示取得所有记录,忽略null,为null值也会取得。 采用count(字段名称),不会取得为null的纪录。 注意:在mysql和oracle中都适用。
阅读全文
摘要:https://www.cnblogs.com/blovedr/p/9211283.html 设置外键 外键名(name):可以不填, 系统自动生成; 栏位名(Field Name): 就是设置‘dept_id’为外键; 参考数据库(Reference DadaBase): 外键(‘dept_id’
阅读全文
摘要:注意: not in语句不会自动忽略空值,需要程序员手动排除NULL。但是in可以自动忽略空值
阅读全文
摘要:class People { String name; public People() { System.out.print(1); } public People(String name) { System.out.print(2); this.name = name; }}class Child
阅读全文
摘要:Dervied tell name: nullDervied print name: nullDervied tell name: derviedDervied print name: dervied
阅读全文
摘要:public class TestString { public static void main(String[] args) { String [] s =new String[10]; String s1 = s[9]; String s2 = s[0]; System.out.println
阅读全文
摘要:1*1=1 1*2=2 2*2=4 1*3=3 2*3=6 3*3=9 1*4=4 2*4=8 3*4=12 4*4=16 1*5=5 2*5=10 3*5=15 4*5=20 5*5=25 1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 6*6=36 1*7=7 2*7=14
阅读全文
摘要:/** * @author VellBibi * 题目:输入三个整数x,y,z,请把这三个数由小到大输出。 * 1.程序分析:舍近求远,练习容器,可以使用List容器很简单实现。 */ public class Sort { public static List<Double> readDouble
阅读全文
摘要:编程题: 公鸡5元一只,母鸡3元一只,小鸡1元一只,给100元,买54只,则公鸡,母鸡,小鸡各多少只? start 公鸡:3只,母鸡:17只,小鸡:34只公鸡:4只,母鸡:15只,小鸡:35只公鸡:5只,母鸡:13只,小鸡:36只公鸡:6只,母鸡:11只,小鸡:37只公鸡:7只,母鸡:9只,小鸡:3
阅读全文
摘要:编程:输入a-z,A-Z中的字母组成字符串,输出下一个字母,如: azAZ 输出:baBA public class TestASCII { public static void main(String[] args) { String str="azAZ"; String s = stringTo
阅读全文
摘要:安装插件: 1:setting>搜 junit 装Junit Generator ... 在pom.xml加入Junit依赖: 2 修改 Junit 的生成包路径: 2.1修改Output Path为:${SOURCEPATH}/../../test/java/${PACKAGE}/${FILENA
阅读全文
摘要:sqlplus bjpowernode/123456@127.0.0.1/orcl
阅读全文
摘要:问题: 在用PL/SQL进行登录时,出现:”ora-01045 :user system lacks create session privilege; logon denied”。 原因:该用户没有创建session会话的权限。 cmd sqlplus / as sysdba; grant cre
阅读全文
摘要:使用背景:创建/修改用户时,ORA-01219:数据库未打开 原因:应该是某个.dbf文件残留;或者误删除(有意删除).dbf文件导致出现上述警告 http://blog.itpub.net/22664653/viewspace-625433/
阅读全文