摘要:
选择:select * from table1 where 范围; 插入:insert into table1(field1,field2) values(value1,value2); 删除:delete from table1 where 范围; 更新:update table1 set fie 阅读全文
摘要:
1.将List转为Set,通过2个集合的size大小是否相等来判断有无重复元素 public static void main(String[] args) { List stringList = new ArrayList<>(Arrays.asList("a","a","b","c")); Se 阅读全文
摘要:
1. 添加字段,比如我在数据表中添加一个 age 字段,类型为int(11) ALTER TABLE player ADD COLUMN age int(11); 2. 修改字段名,将 age 字段改成player_age ALTER TABLE player RENAME COLUMN age t 阅读全文