摘要:
一、MySQL分区创建 MySQL创建方式一共有四种:range、list、hash和key。 1.range(官方文档) 1.1 int create table staff( id int(32) not null, code_ varchar(30), fname varchar(30), t 阅读全文
摘要:
public class filename { public static void main(String[] args) { File file = new File("/Users/pankaj/book.txt"); System.out.println("File extension is 阅读全文
摘要:
接口类(CodeEnum): public interface CodeEnum { //状态码 public int getCode(); //返回信息 public String getMessage(); } 实现类(CodeEnumEntity): public enum CodeEnumE 阅读全文
摘要:
--1.列出至少有一个雇员的所有部门select dname from dept where deptno in (select deptno from emp);--2.列出薪金比"SMITH"多的所有雇员select ename from emp where sal>(select sal fr 阅读全文
摘要:
String类型 set key value O(1) 设置key对应string类型的值,返回1表示成功,0失败。 setnx key value O(1) 如果key不存在,设置key对应string类型的值。如果key已经存在,返回0。 get key O(1) 获取key对应的string值 阅读全文