摘要:
在oracle中用户表中的性别存储的是0或者1,请问使用oracle中那个函数,可以相应的输出男或者女? 在oracle中可以使用decode()函数 具体语句为:select decode(sex,0,"男'',1,"女") from t_user;语句的意思是选择表中的"0"替换为"男","1" 阅读全文
摘要:
a表中有10条数据,b表中有5条数据,a表与b有关联的数据b中有3条,请问内连接查询时会有几条数据,左连接时会有几条数据? a表 b表 test_id test_name user_id test_id user_name 1 test1 1 1 user1 2 test2 2 2 user2 3 阅读全文
摘要:
以下内容均参考:https://www.cnblogs.com/su-feng/p/6659064.html 说说String和StringBuffer的区别 将从三个点来介绍他们之间的区别 1、运行速度 在执行速度快慢为:StringBuilder>StringBuffer>String Stri 阅读全文
摘要:
以下内容均参考:http://blog.csdn.net/lcore/article/details/8967528 一、请描述一下Servlet的执行过程。 在Servlet框架中所有的Servlet类都必须实现Servlet这个借口,其中定义了三个方法。分别为: 1.init方法:负责初始化Se 阅读全文